Android.Media.Session.MediaSession.SetMediaButtonReceiver Method
Set a pending intent for your media button receiver to allow restarting playback after the session has been stopped.

Syntax

[Android.Runtime.Register("setMediaButtonReceiver", "(Landroid/app/PendingIntent;)V", "")]
public void SetMediaButtonReceiver (Android.App.PendingIntent mbr)

Parameters

mbr
The Android.App.PendingIntent to send the media button event to.

Remarks

Set a pending intent for your media button receiver to allow restarting playback after the session has been stopped. If your app is started in this way an Android.Content.Intent.ActionMediaButton intent will be sent via the pending intent.

[Android Documentation]

Requirements

Namespace: Android.Media.Session
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0