MediaSession.SetPlaybackToRemote(VolumeProvider) Method

Definition

Configure this session to use remote volume handling.

[Android.Runtime.Register("setPlaybackToRemote", "(Landroid/media/VolumeProvider;)V", "")]
public void SetPlaybackToRemote (Android.Media.VolumeProvider volumeProvider);
[<Android.Runtime.Register("setPlaybackToRemote", "(Landroid/media/VolumeProvider;)V", "")>]
member this.SetPlaybackToRemote : Android.Media.VolumeProvider -> unit

Parameters

volumeProvider
VolumeProvider

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

Attributes

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 #setPlaybackToLocal was previously called the system will stop handling volume changes for this session and pass them to the volume provider instead.

Java documentation for android.media.session.MediaSession.setPlaybackToRemote(android.media.VolumeProvider).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to