Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
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(MediaSessionManager.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.