Skip to main content

Interface: ActivityLifecycleEvent

Notifies when an activity starts, ends, cancels, or creates data.

Extends

Properties

handled?

optional handled: boolean

Has the event been taken care of by the listener and not be dispatched to other targets?

Inherited from

ActivityEvent.handled

Source

M2Event.ts:26


iso8601Timestamp

iso8601Timestamp: string

Timestamp of th event, from new Date().toISOString()

Inherited from

ActivityEvent.iso8601Timestamp

Source

M2Event.ts:30


results?

optional results: ActivityResults

Source

ActivityLifecycleEvent.ts:9


sequence?

optional sequence: number

Sequence number of event.

Remarks

Sequence number is guaranteed to reflect order of events, but not necessarily contiguous, e.g., could be 1, 2, 5, 10, 11, 24.

Inherited from

ActivityEvent.sequence

Source

M2Event.ts:35


target

target: Activity

The object on which the event occurred. If the event has gone through serialization, the string will be the object's UUID (if an M2Node) or class name.

Inherited from

ActivityEvent.target

Source

ActivityEvent.ts:6


timestamp

timestamp: number

Timestamp of the event, from performance.now()

Inherited from

ActivityEvent.timestamp

Source

M2Event.ts:28


type

type: string

Type of event.

Inherited from

ActivityEvent.type

Source

M2Event.ts:22