added in version 24.1.0
belongs to Maven artifact com.android.support:support-media-compat:28.0.0-alpha1
belongs to Maven artifact com.android.support:support-media-compat:28.0.0-alpha1
Summary:
Nested Classes
| Constants
| Inherited Constants
| Ctors
| Methods
| Inherited Methods
| [Expand All]
MediaBrowserServiceCompat
public
abstract
class
MediaBrowserServiceCompat
extends Service
java.lang.Object | ||||
↳ | android.content.Context | |||
↳ | android.content.ContextWrapper | |||
↳ | android.app.Service | |||
↳ | android.support.v4.media.MediaBrowserServiceCompat |
Base class for media browse services.
Media browse services enable applications to browse media content provided by an application
and ask the application to start playing it. They may also be used to control content that
is already playing by way of a MediaSessionCompat
.
SERVICE_INTERFACE
action.
For example:
<service android:name=".MyMediaBrowserServiceCompat" android:label="@string/service_name" > <intent-filter> <action android:name="android.media.browse.MediaBrowserService" /> </intent-filter> </service>
Developer Guides
For information about building your media application, read the Media Apps developer guide.
Summary
Nested classes | |
---|---|
class |
MediaBrowserServiceCompat.BrowserRoot
Contains information that the browser service needs to send to the client when first connected. |
class |
MediaBrowserServiceCompat.Result<T>
Completion handler for asynchronous callback methods in |
Constants | |
---|---|
String |
SERVICE_INTERFACE
The |
Inherited constants |
---|
![]()
android.app.Service
|
![]()
android.content.Context
|