Language

MediaSessionType Enum

Definition

Identifies whether a session token represents a media session or a session service.

public enum MediaSessionType
type MediaSessionType = 
Inheritance
MediaSessionType

Fields

Name Value Description
Session 0

Type for MediaSession2.

Android reference for android.media.Session2Token.TYPE_SESSION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SessionService 1

Type for MediaSession2Service.

Android reference for android.media.Session2Token.TYPE_SESSION_SERVICE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

A service token can identify a service that is not currently running a session. The token can be used to create a controller for communication with the represented endpoint.

Applies to