Share via


AudioTrack.IOnRoutingChangedListener.OnRoutingChanged(AudioTrack) Method

Definition

Called when the routing of an AudioTrack changes from either and explicit or policy rerouting.

[Android.Runtime.Register("onRoutingChanged", "(Landroid/media/AudioTrack;)V", "GetOnRoutingChanged_Landroid_media_AudioTrack_Handler:Android.Media.AudioTrack/IOnRoutingChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)]
public void OnRoutingChanged (Android.Media.AudioTrack? audioTrack);
[<Android.Runtime.Register("onRoutingChanged", "(Landroid/media/AudioTrack;)V", "GetOnRoutingChanged_Landroid_media_AudioTrack_Handler:Android.Media.AudioTrack/IOnRoutingChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)>]
abstract member OnRoutingChanged : Android.Media.AudioTrack -> unit

Parameters

audioTrack
AudioTrack
Attributes

Remarks

Called when the routing of an AudioTrack changes from either and explicit or policy rerouting. Use #getRoutedDevice() to retrieve the newly routed-to device.

Java documentation for android.media.AudioTrack.OnRoutingChangedListener.onRoutingChanged(android.media.AudioTrack).

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