belongs to Maven artifact com.android.support:mediarouter-v7:28.0.0-alpha1
MediaSessionStatus.Builder
public
static
final
class
MediaSessionStatus.Builder
extends Object
java.lang.Object | |
↳ | android.support.v7.media.MediaSessionStatus.Builder |
Builder for media session status objects
.
Summary
Public constructors | |
---|---|
MediaSessionStatus.Builder(int sessionState)
Creates a media session status builder using the current time as the reference timestamp. |
|
MediaSessionStatus.Builder(MediaSessionStatus status)
Creates a media session status builder whose initial contents are copied from an existing status. |
Public methods | |
---|---|
MediaSessionStatus
|
build()
Builds the |
MediaSessionStatus.Builder
|
setExtras(Bundle extras)
Sets a bundle of extras for this status object. |
MediaSessionStatus.Builder
|
setQueuePaused(boolean queuePaused)
Sets whether the queue is paused. |
MediaSessionStatus.Builder
|
setSessionState(int sessionState)
Sets the session state. |
MediaSessionStatus.Builder
|
setTimestamp(long elapsedRealtimeTimestamp)
Sets the timestamp associated with the status information in
milliseconds since boot in the |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
MediaSessionStatus.Builder
MediaSessionStatus.Builder (int sessionState)
Creates a media session status builder using the current time as the reference timestamp.
Parameters | |
---|---|
sessionState |
int : The session state.
|
MediaSessionStatus.Builder
MediaSessionStatus.Builder (MediaSessionStatus status)
Creates a media session status builder whose initial contents are copied from an existing status.
Parameters | |
---|---|
status |
MediaSessionStatus |
Public methods
build
MediaSessionStatus build ()
Builds the media session status object
.
Returns | |
---|---|
MediaSessionStatus |
setExtras
MediaSessionStatus.Builder setExtras (Bundle extras)
Sets a bundle of extras for this status object. The extras will be ignored by the media router but they may be used by applications.
Parameters | |
---|---|
extras |
Bundle |
Returns | |
---|---|
MediaSessionStatus.Builder |
setQueuePaused
MediaSessionStatus.Builder setQueuePaused (boolean queuePaused)
Sets whether the queue is paused.
Parameters | |
---|---|
queuePaused |
boolean |
Returns | |
---|---|
MediaSessionStatus.Builder |
setSessionState
MediaSessionStatus.Builder setSessionState (int sessionState)
Sets the session state.
Parameters | |
---|---|
sessionState |
int |
Returns | |
---|---|
MediaSessionStatus.Builder |
setTimestamp
MediaSessionStatus.Builder setTimestamp (long elapsedRealtimeTimestamp)
Sets the timestamp associated with the status information in
milliseconds since boot in the elapsedRealtime()
time base.
Parameters | |
---|---|
elapsedRealtimeTimestamp |
long |
Returns | |
---|---|
MediaSessionStatus.Builder |
Interfaces
Classes
- MediaControlIntent
- MediaItemMetadata
- MediaItemStatus
- MediaItemStatus.Builder
- MediaRouteDescriptor
- MediaRouteDescriptor.Builder
- MediaRouteDiscoveryRequest
- MediaRouteProvider
- MediaRouteProvider.Callback
- MediaRouteProvider.ProviderMetadata
- MediaRouteProvider.RouteController
- MediaRouteProviderDescriptor
- MediaRouteProviderDescriptor.Builder
- MediaRouteProviderService
- MediaRouter
- MediaRouter.Callback
- MediaRouter.ControlRequestCallback
- MediaRouter.ProviderInfo
- MediaRouter.RouteInfo
- MediaRouteSelector
- MediaRouteSelector.Builder
- MediaSessionStatus
- MediaSessionStatus.Builder
- RemotePlaybackClient
- RemotePlaybackClient.ActionCallback
- RemotePlaybackClient.ItemActionCallback
- RemotePlaybackClient.SessionActionCallback
- RemotePlaybackClient.StatusCallback