App-level timeline related events.
You'll only need to track these events if you want to add new types of timeline tracks & keyframes
that can be created from raw data in Fragment
instances.
Events
createTrack(type:String, options:Dynamic<Dynamic>, result:Value<TimelineTrack<TimelineKeyframe>>):Void
Used to expand how timeline tracks are created from raw data (from Fragment
instances).
Respond to this event by assigning a value to the result
argument.
Parameters:
type | Type of the field being modified by the track |
---|---|
options | Can be used to configure timeline track creation |
result | The object that will hold the resulting track. |
bindTrack(type:String, options:Dynamic<Dynamic>, track:TimelineTrack<TimelineKeyframe>, entity:Entity, field:String):Void
Used to expand how timeline tracks are bound to objects.
Parameters:
type | Type of the field being modified by the track |
---|---|
options | Can be used to configure timeline track binding |
track | The track on which we bind the entity |
entity | The entity to bind to this track |
field | The entity field that should be updated by this track |
createKeyframe(type:String, options:Dynamic<Dynamic>, value:Dynamic, index:Int, easing:Easing, existing:Null<TimelineKeyframe>, result:Value<TimelineKeyframe>):Void
Used to expand how timeline keyframes are created from raw data (from Fragment
instances).
Respond to this event by assigning a value to the result
argument.
Parameters:
type | Type of the field being modified by the keyframe |
---|---|
options | Can be used to configure timeline keyframe creation |
value | Value of the keyframe |
time | Time (in seconds) of the keyframe |
easing | Easing of the keyframe |
existing | Existing keyframe instance at the same position/time. Can be reused to prevent new allocation of keyframe instance |
result | The object that will hold the resulting keyframe. |
Constructor
Methods
emitCreateTrack(type:String, options:Dynamic<Dynamic>, result:Value<TimelineTrack<TimelineKeyframe>>):Void
Used to expand how timeline tracks are created from raw data (from Fragment
instances).
Respond to this event by assigning a value to the result
argument.
Parameters:
type | Type of the field being modified by the track |
---|---|
options | Can be used to configure timeline track creation |
result | The object that will hold the resulting track. |
emitBindTrack(type:String, options:Dynamic<Dynamic>, track:TimelineTrack<TimelineKeyframe>, entity:Entity, field:String):Void
Used to expand how timeline tracks are bound to objects.
Parameters:
type | Type of the field being modified by the track |
---|---|
options | Can be used to configure timeline track binding |
track | The track on which we bind the entity |
entity | The entity to bind to this track |
field | The entity field that should be updated by this track |
emitCreateKeyframe(type:String, options:Dynamic<Dynamic>, value:Dynamic, index:Int, easing:Easing, existing:Null<TimelineKeyframe>, result:Value<TimelineKeyframe>):Void
Used to expand how timeline keyframes are created from raw data (from Fragment
instances).
Respond to this event by assigning a value to the result
argument.
Parameters:
type | Type of the field being modified by the keyframe |
---|---|
options | Can be used to configure timeline keyframe creation |
value | Value of the keyframe |
time | Time (in seconds) of the keyframe |
easing | Easing of the keyframe |
existing | Existing keyframe instance at the same position/time. Can be reused to prevent new allocation of keyframe instance |
result | The object that will hold the resulting keyframe. |