Added in API level 21

MediaSessionManager.OnActiveSessionsChangedListener


public static interface MediaSessionManager.OnActiveSessionsChangedListener

android.media.session.MediaSessionManager.OnActiveSessionsChangedListener


Listens for changes to the list of active sessions. This can be added using MediaSessionManager.addOnActiveSessionsChangedListener(OnActiveSessionsChangedListener, ComponentName).

Summary

Public methods

abstract void onActiveSessionsChanged(List<MediaController> controllers)

Public methods

onActiveSessionsChanged

Added in API level 21
public abstract void onActiveSessionsChanged (List<MediaController> controllers)

Parameters
controllers List: This value may be null.