Android APIs
public final class

MediaSessionManager

extends Object
java.lang.Object
   ↳ android.media.session.MediaSessionManager

Class Overview

MediaSessionManager allows the creation and control of MediaSessions in the system. A MediaSession enables publishing information about ongoing media and interacting with MediaControllers and MediaRoutes.

Use Context.getSystemService(Context.MEDIA_SESSION_SERVICE) to get an instance of this class.

Summary

Public Methods
MediaSession createSession(String tag)
Creates a new session.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public MediaSession createSession (String tag)

Creates a new session.

Parameters
tag A short name for debugging purposes
Returns