SpineListener

ceramic.SpineListener (Class)

Internal listener for Spine animation state events.

This class implements the AnimationStateListener interface and forwards events to dynamic function properties for flexible event handling.

Instance Members

spine
onStart(entry: spine.TrackEntry): Void

Called when an animation starts playing on a track.

Name Type Description
entry spine.TrackEntry The track entry that started

spine
start(entry: spine.TrackEntry): Void
Name Type
entry spine.TrackEntry

spine
onInterrupt(entry: spine.TrackEntry): Void

Called when an animation is interrupted by another animation. The interrupted animation may continue mixing.

Name Type Description
entry spine.TrackEntry The track entry that was interrupted

spine
interrupt(entry: spine.TrackEntry): Void
Name Type
entry spine.TrackEntry

spine
onEnd(entry: spine.TrackEntry): Void

Called when an animation ends and will no longer be applied.

Name Type Description
entry spine.TrackEntry The track entry that ended

spine
end(entry: spine.TrackEntry): Void
Name Type
entry spine.TrackEntry

spine
onDispose(entry: spine.TrackEntry): Void

Called when a track entry is about to be disposed. Do not keep references to the entry after this call.

Name Type Description
entry spine.TrackEntry The track entry being disposed

spine
dispose(entry: spine.TrackEntry): Void
Name Type
entry spine.TrackEntry

spine
onComplete(entry: spine.TrackEntry): Void

Called each time an animation completes a full loop.

Name Type Description
entry spine.TrackEntry The track entry that completed

spine
complete(entry: spine.TrackEntry): Void
Name Type
entry spine.TrackEntry

spine
onEvent(entry: spine.TrackEntry, event: spine.Event): Void

Called when an animation triggers a user-defined event.

Name Type Description
entry spine.TrackEntry The track entry that triggered the event
event spine.Event The event data

spine
event(entry: spine.TrackEntry, event: spine.Event): Void
Name Type
entry spine.TrackEntry
event spine.Event

spine
new(): Void