Java android.media.session MediaController fields, constructors, methods, implement or subclass

Example usage for Java android.media.session MediaController fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media.session MediaController.

The text is from its open source code.

Constructor

MediaController(Context context, ISessionController sessionBinder)
Call for creating a MediaController directly from a binder.
MediaController(@NonNull Context context, @NonNull MediaSession.Token token)
Create a new MediaController from a session's token.

Method

PlaybackStategetPlaybackState()
Get the current playback state for this session.
TransportControlsgetTransportControls()
Get a TransportControls instance to send transport actions to the associated session.