Skip to content

Most visited

Recently visited

added in version 22.1.0




MediaButtonReceiver A media button receiver receives and helps translate hardware media playback buttons, such as those found on wired and wireless headsets, into the appropriate callbacks in your app. 
MediaControllerCompat Allows an app to interact with an ongoing media session. 
MediaControllerCompat.Callback Callback for receiving updates on from the session. 
MediaControllerCompat.PlaybackInfo Holds information about the way volume is handled for this session. 
MediaControllerCompat.TransportControls Interface for controlling media playback on a session. 
MediaSessionCompat Allows interaction with media controllers, volume keys, media buttons, and transport controls. 
MediaSessionCompat.Callback Receives transport controls, media buttons, and commands from controllers and the system. 
MediaSessionCompat.QueueItem A single item that is part of the play queue. 
MediaSessionCompat.Token Represents an ongoing session. 
ParcelableVolumeInfo Convenience class for passing information about the audio configuration of a MediaSessionCompat
PlaybackStateCompat Playback state for a MediaSessionCompat
PlaybackStateCompat.Builder Builder for PlaybackStateCompat objects. 
PlaybackStateCompat.CustomAction CustomActions can be used to extend the capabilities of the standard transport controls by exposing app specific actions to Controllers
PlaybackStateCompat.CustomAction.Builder Builder for PlaybackStateCompat.CustomAction objects. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


在微信上关注 Google Developers

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)