Allows an app to interact with an ongoing media session. Media buttons and other commands can be sent to the session. A callback may be registered to receive updates from the session, such as metadata and play state changes.
A MediaController can be created if you have a
from the session owner.
MediaController objects are thread-safe.
This is a helper for accessing features in
introduced after API level 4 in a backwards compatible fashion.
If MediaControllerCompat is created with a
from another process, following methods will not work directly after the creation if the
session token is not passed through a
For information about building your media application, read the Media Apps developer guide.
Callback for receiving updates on from the session.
Holds information about the way volume is handled for this session.
Interface for controlling media playback on a session.
Creates a media controller from a session.
Creates a media controller from a session token which may have been obtained from another process.
Adds a queue item from the given