MediaSession.SetPlaybackToLocal(AudioAttributes) 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.
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.
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.