Share via


MediaSession.SetPlaybackToLocal(AudioAttributes) Method

Definition

Set the attributes for this session's audio.

[Android.Runtime.Register("setPlaybackToLocal", "(Landroid/media/AudioAttributes;)V", "")]
public void SetPlaybackToLocal (Android.Media.AudioAttributes? attributes);
[<Android.Runtime.Register("setPlaybackToLocal", "(Landroid/media/AudioAttributes;)V", "")>]
member this.SetPlaybackToLocal : Android.Media.AudioAttributes -> unit

Parameters

attributes
AudioAttributes

The AudioAttributes for this session's audio.

Attributes

Remarks

Set the attributes for this session's audio. This will affect the system's volume handling for this session. If #setPlaybackToRemote was previously called it will stop receiving volume commands and the system will begin sending volume changes to the appropriate stream.

By default sessions use attributes for media.

Java documentation for android.media.session.MediaSession.setPlaybackToLocal(android.media.AudioAttributes).

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