AudioFocusManager.PlayerControl


interface AudioFocusManager.PlayerControl


Interface to allow AudioFocusManager to give commands to a player.

Summary

Public functions

Unit

Called when a command must be executed on the player.

Unit
setVolumeMultiplier(volumeMultiplier: Float)

Called when the volume multiplier on the player should be changed.

Public functions

executePlayerCommand

fun executePlayerCommand(@AudioFocusManager.PlayerCommand playerCommand: Int): Unit

Called when a command must be executed on the player.

Parameters
@AudioFocusManager.PlayerCommand playerCommand: Int

The command that must be executed.

setVolumeMultiplier

fun setVolumeMultiplier(volumeMultiplier: Float): Unit

Called when the volume multiplier on the player should be changed.

Parameters
volumeMultiplier: Float

The new volume multiplier.