Class: Toybox.WatchUi.AnimationLayer
- Inherits:
-
Toybox.WatchUi.Layer
Overview
The class that represents an Animation layer
Instance Method Summary collapse
-
getDc() as Graphics.Dc or Null
getDc will always return
null, as the dc buffer of animations can not be updated by user. -
getResource() as WatchUi.AnimationResource
Get the animation resource.
-
initialize(rez as Lang.ResourceId or WatchUi.AnimationResource, options as { :locX as Lang.Numeric, :locY as Lang.Numeric, :identifier as Lang.Object, :visibility as Lang.Boolean } or Null)
Constructor.
-
play(options as { :delegate as WatchUi.AnimationDelegate } or Null) as Lang.Boolean
Play animation, animation must be added to and not abandoned by the view before it can be played.
-
stop() as Void
Stop a playing animation.
Instance Method Details
getDc() as Graphics.Dc or Null
getDc will always return null, as the dc buffer of animations can not be updated by user.
getResource() as WatchUi.AnimationResource
Get the animation resource
initialize(rez as Lang.ResourceId or WatchUi.AnimationResource, options as { :locX as Lang.Numeric, :locY as Lang.Numeric, :identifier as Lang.Object, :visibility as Lang.Boolean } or Null)
Constructor
play(options as { :delegate as WatchUi.AnimationDelegate } or Null) as Lang.Boolean
Play animation, animation must be added to and not abandoned by the view before it can be played.
This will stop the existing playback first.
stop() as Void
Stop a playing animation.
The last frame of the animation will be persisted in the frame buffer.