Help Center

Local Navigation

Object: CustomEvent

Availability

BlackBerry® Device Software version 4.6 or later

Extends

Event

The CustomEvent object represents an unknown event type. This object is typically used for application-specific event types.

To create an instance of a CustomEvent, you must invoke Document.createEvent() with an input parameter of "CustomEvent".

Properties

Property name

Type

Description

Status

Availability

detail

Object

Specifies some detail information about the Event, depending on the type of event.

read only

4.6 or later

CustomEvent methods

Method name

Description

Availability

initCustomEventNS()

Initializes the value of a CustomEvent created by Document.createEvent().

4.6 or later

Method: CustomEvent.initCustomEventNS()

Availability

BlackBerry® Device Software version 4.6 or later

The initCustomEventNS() method initializes the value of a CustomEvent created by Document.createEvent().

Syntax

CustomEvent.initCustomEventNS( arg, canBubbleArg, cancelableArg, detailArg )

Parameters

Parameter

Type

Description

arg

int

The event type.

canBubbleArg

boolean

If true, specifies that the event can bubble.

cancelableArg

boolean

If true, specifies that the event can be cancelled.

detailArg

long

The event’s detail.

Return values

None.

Exceptions

None.

Next topic: Object: Document

Was this information helpful? Send us your comments.