Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

MediaSessionStatus.Builder

extends Object
java.lang.Object
   ↳ android.support.v7.media.MediaSessionStatus.Builder

Class Overview

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 ()
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 elapsedRealtime() time base.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaSessionStatus.Builder (int sessionState)

Creates a media session status builder using the current time as the reference timestamp.

Parameters
sessionState The session state.

public MediaSessionStatus.Builder ( MediaSessionStatus status)

Creates a media session status builder whose initial contents are copied from an existing status.

Public Methods

public 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.

public MediaSessionStatus.Builder setQueuePaused (boolean queuePaused)

Sets whether the queue is paused.

public MediaSessionStatus.Builder setSessionState (int sessionState)

Sets the session state.

public MediaSessionStatus.Builder setTimestamp (long elapsedRealtimeTimestamp)

Sets the timestamp associated with the status information in milliseconds since boot in the elapsedRealtime() time base.