Class: Toybox.Media.SystemButton
- Inherits:
-
Toybox.Lang.Object
Overview
A SystemButton allows an app to override a default media player button. The button can be overridden by providing a new Toybox::WatchUi::BitmapResource, Toybox::Graphics::BitmapReference or a Toybox::Lang::Number representing a 24-bit RRGGBB color value. If a color value is provided then the system default button will be used but will drawn using the given color.
Note:
BitmapReference is only supported in CIQ 4.0.0 and later
Instance Method Summary collapse
-
getImage(image as Media.ButtonImage, state as Media.ButtonState, highlighted as Lang.Boolean) as Graphics.BitmapType or Graphics.ColorType or Null
Called by the system to draw the button in the Media Player.
-
initialize(type as Media.PlaybackControl, options as { :disabled as Lang.Boolean } or Null)
Constructor.
Instance Method Details
getImage(image as Media.ButtonImage, state as Media.ButtonState, highlighted as Lang.Boolean) as Graphics.BitmapType or Graphics.ColorType or Null
Called by the system to draw the button in the Media Player
Note:
BitmapReference is only supported in CIQ 4.0.0 and later
initialize(type as Media.PlaybackControl, options as { :disabled as Lang.Boolean } or Null)
Constructor