C# Класс Plugin.MediaManager.MediaSession.MediaSessionManager

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
HandleAction void
InitMediaSession void
Release void
UpdateMetadata void

Открытые методы

Метод Описание
MediaSessionManager ( Android.Content.Context appContext, Type serviceType ) : System
UpdatePlaybackState ( int state, int position, string errorMessage = "" ) : void

Updates the state of the player.

Приватные методы

Метод Описание
HandleAction ( string action ) : void
InitMediaSession ( string packageName, MediaServiceBinder binder ) : void
Release ( ) : void
UpdateMetadata ( IMediaFile currentTrack ) : void

Updates the metadata on the lock screen

Описание методов

MediaSessionManager() публичный Метод

public MediaSessionManager ( Android.Content.Context appContext, Type serviceType ) : System
appContext Android.Content.Context
serviceType System.Type
Результат System

UpdatePlaybackState() публичный Метод

Updates the state of the player.
public UpdatePlaybackState ( int state, int position, string errorMessage = "" ) : void
state int The state.
position int
errorMessage string
Результат void