C# 클래스 Plugin.MediaManager.MediaNotificationManagerImplementation

상속: IMediaNotificationManager
파일 보기 프로젝트 열기: martijn00/XamarinMediaManager 1 사용 예제들

공개 메소드들

메소드 설명
MediaNotificationManagerImplementation ( Android.Content.Context appliactionContext, MediaSessionCompat sessionToken, Type serviceType ) : System
StartNotification ( IMediaFile mediaFile ) : void
StartNotification ( IMediaFile mediaFile, bool mediaIsPlaying, bool canBeRemoved ) : void

When we start on the foreground we will present a notification to the user When they press the notification it will take them to the main page so they can control the music

StopNotifications ( ) : void
UpdateNotifications ( IMediaFile mediaFile, MediaPlayerStatus status ) : void

비공개 메소드들

메소드 설명
AddActionButtons ( bool mediaIsPlaying ) : void
GenerateActionCompat ( int icon, string title, string intentAction ) : Android.Support.V4.App.Android.Support.V7.App.NotificationCompat.Action
SetMetadata ( IMediaFile mediaFile ) : void

메소드 상세

MediaNotificationManagerImplementation() 공개 메소드

public MediaNotificationManagerImplementation ( Android.Content.Context appliactionContext, MediaSessionCompat sessionToken, Type serviceType ) : System
appliactionContext Android.Content.Context
sessionToken MediaSessionCompat
serviceType System.Type
리턴 System

StartNotification() 공개 메소드

public StartNotification ( IMediaFile mediaFile ) : void
mediaFile IMediaFile
리턴 void

StartNotification() 공개 메소드

When we start on the foreground we will present a notification to the user When they press the notification it will take them to the main page so they can control the music
public StartNotification ( IMediaFile mediaFile, bool mediaIsPlaying, bool canBeRemoved ) : void
mediaFile IMediaFile
mediaIsPlaying bool
canBeRemoved bool
리턴 void

StopNotifications() 공개 메소드

public StopNotifications ( ) : void
리턴 void

UpdateNotifications() 공개 메소드

public UpdateNotifications ( IMediaFile mediaFile, MediaPlayerStatus status ) : void
mediaFile IMediaFile
status MediaPlayerStatus
리턴 void