MediaSession.SetPlaybackToRemote(VolumeProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.