Added in API level 26

AudioPlaybackCallback

abstract class AudioPlaybackCallback
kotlin.Any
   ↳ android.media.AudioManager.AudioPlaybackCallback

Interface for receiving update notifications about the playback activity on the system. Extend this abstract class and register it with AudioManager#registerAudioPlaybackCallback(AudioPlaybackCallback, Handler) to be notified. Use AudioManager#getActivePlaybackConfigurations() to query the current configuration.

Summary

Public constructors

Public methods
open Unit

Called whenever the playback activity and configuration has changed.

Public constructors

AudioPlaybackCallback

AudioPlaybackCallback()

Public methods

onPlaybackConfigChanged

Added in API level 26
open fun onPlaybackConfigChanged(configs: MutableList<AudioPlaybackConfiguration!>!): Unit

Called whenever the playback activity and configuration has changed.

Parameters
configs MutableList<AudioPlaybackConfiguration!>!: list containing the results of AudioManager#getActivePlaybackConfigurations().