Class “EventObject”

Object > EventObject

Base class for all events fired by the framework. Instances may include additional properties, which are documented together with the event type. Change events also have a value property.

When the trigger method is called with a new instance of EventObject, type, target and timeStamp are initialized automatically.

In TypeScript this is a generic class, with the parameter T defining the type of the target property.

TypeScript type EventObject<T> extends Object
Constructor public
Singleton No
Namespace tabris
Direct subclasses None
JSX support No

Constructor

new EventObject()

Parameter|Type|Optional|Description

  • |-|-|-

Properties

target

The object that fired the event.

Type object
Settable No
Change events No

This property can only be set via constructor. Once set, it cannot change anymore.

timeStamp

The time at which the event was created, in milliseconds.

Type number
Settable No
Change events No

This property can only be set via constructor. Once set, it cannot change anymore.

type

The event type.

Type string
Settable No
Change events No

This property can only be set via constructor. Once set, it cannot change anymore.