Android.Media.Session.MediaSession.SetPlaybackToRemote Method
Configure this session to use remote volume handling.

Syntax

[Android.Runtime.Register("setPlaybackToRemote", "(Landroid/media/VolumeProvider;)V", "")]
public void SetPlaybackToRemote (Android.Media.VolumeProvider volumeProvider)

Parameters

volumeProvider
The provider that will handle volume changes. May not be null.

Remarks

Configure this session to use remote volume handling. This must be called to receive volume button events, otherwise the system will adjust the appropriate stream volume for this session. If MediaSession.SetPlaybackToLocal(Android.Media.AudioAttributes) was previously called the system will stop handling volume changes for this session and pass them to the volume provider instead.

[Android Documentation]

Requirements

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