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 registerAudioPlaybackCallback(AudioPlaybackCallback, Handler) to be notified. Use 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
AudioManager.AudioPlaybackCallback ()

Public methods

onPlaybackConfigChanged

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

Called whenever the playback activity and configuration has changed.

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