C# Class Plugin.MediaManager.MediaSession.MediaSessionManager

Datei anzeigen Open project: martijn00/XamarinMediaManager Class Usage Examples

Private Properties

Property Type Description
HandleAction void
InitMediaSession void
Release void
UpdateMetadata void

Public Methods

Method Description
MediaSessionManager ( Android.Content.Context appContext, Type serviceType ) : System
UpdatePlaybackState ( int state, int position, string errorMessage = "" ) : void

Updates the state of the player.

Private Methods

Method Description
HandleAction ( string action ) : void
InitMediaSession ( string packageName, MediaServiceBinder binder ) : void
Release ( ) : void
UpdateMetadata ( IMediaFile currentTrack ) : void

Updates the metadata on the lock screen

Method Details

MediaSessionManager() public method

public MediaSessionManager ( Android.Content.Context appContext, Type serviceType ) : System
appContext Android.Content.Context
serviceType System.Type
return System

UpdatePlaybackState() public method

Updates the state of the player.
public UpdatePlaybackState ( int state, int position, string errorMessage = "" ) : void
state int The state.
position int
errorMessage string
return void