Class: Toybox::Media::SystemButton

Inherits:
Lang::Object show all

Overview

A SystemButton allows an app to override a default media player button. The button can be overridden by providing a new WatchUi::BitmapResource or a 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.

Since:

  • 3.0.3

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(type, options) ⇒ SystemButton

Returns a new instance of SystemButton

Parameters:

Options Hash (options):

Since:

  • 3.0.3


8820
8821
# File 'Monkeybrains.rb', line 8820

def initialize(type, options)
end

Instance Method Details

getImage(image, state, highlighted) ⇒ Toybox::WatchUi::BitmapResource, Toybox::Lang::Number

Called by the system to draw the button in the Media Player

Parameters:

Returns:

Since:

  • 3.0.3


8830
8831
# File 'Monkeybrains.rb', line 8830

def getImage(image, state, highlighted)
end