lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

AudioManager.AudioPlaybackCallback

public static abstract class AudioManager.AudioPlaybackCallback
extends Object

java.lang.Object
   ↳ 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

AudioManager.AudioPlaybackCallback()

Public methods

void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs)

Called whenever the playback activity and configuration has changed.

Inherited methods

Public constructors

AudioManager.AudioPlaybackCallback

added in API level 26
public AudioManager.AudioPlaybackCallback ()

Public methods

onPlaybackConfigChanged

added in API level 26
public void onPlaybackConfigChanged (List<AudioPlaybackConfiguration> configs)

Called whenever the playback activity and configuration has changed.

Parameters
configs List: list containing the results of AudioManager.getActivePlaybackConfigurations().