PlayStateAndroidMedia
| Kind | class |
| Package | play.helpers |
| Full name | play.helpers.PlayStateAndroidMedia |
| Source | source/play/helpers/PlayStateAndroidMedia.hx |
| Metadata | @:access(play.PlayState) |
Public methods
start
static function start(playState:play.PlayState):Void
Only compiled when #if android.
Begin presenting the current song to Android's media system.
| Parameter | Type | Default |
|---|---|---|
playState | play.PlayState | — |
stop
static function stop(?playState:play.PlayState):Void
Only compiled when #if android.
Tear down the session wiring (song over / state destroyed).
| Parameter | Type | Default |
|---|---|---|
playState (optional) | play.PlayState | — |
start
static function start(playState:play.PlayState):Void
Only compiled when #if !(android).
| Parameter | Type | Default |
|---|---|---|
playState | play.PlayState | — |
stop
static function stop(?playState:play.PlayState):Void
Only compiled when #if !(android).
| Parameter | Type | Default |
|---|---|---|
playState (optional) | play.PlayState | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
state | play.PlayState | yes |
updateTimer | FlxTimer | yes |
ducked | Bool | yes |
volumeBeforeDuck | Float | yes |
| Method |
|---|
static function refreshPlaybackState():Void |
static function getSongArtist():String |
static function getSongArtworkPath():String |
static function onMediaPlay():Void |
static function onMediaPause():Void |
static function onMediaStop():Void |
static function onAudioFocusChanged(change:String):Void |