AudioFocusListener

Listener for audio focus changes.

Functions

Link copied to clipboard
abstract fun onDuck()

Called when should duck (lower volume temporarily)

Link copied to clipboard
abstract fun onFocusGained()

Called when audio focus is gained

Link copied to clipboard
abstract fun onFocusLost(transient: Boolean)

Called when audio focus is lost (transient = can resume, permanent = should stop)