Freigeben über


AudioTrack.AddOnRoutingChangedListener Method

Definition

Overloads

AddOnRoutingChangedListener(AudioTrack+IOnRoutingChangedListener, Handler)

Adds an AudioRouting.OnRoutingChangedListener to receive notifications of routing changes on this AudioTrack.

AddOnRoutingChangedListener(IAudioRoutingOnRoutingChangedListener, Handler)

Adds an AudioRouting.OnRoutingChangedListener to receive notifications of routing changes on this AudioTrack.

AddOnRoutingChangedListener(AudioTrack+IOnRoutingChangedListener, Handler)

Adds an AudioRouting.OnRoutingChangedListener to receive notifications of routing changes on this AudioTrack.

[Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioTrack$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioTrack_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=23)]
public virtual void AddOnRoutingChangedListener (Android.Media.AudioTrack.IOnRoutingChangedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioTrack$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioTrack_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=23)>]
abstract member AddOnRoutingChangedListener : Android.Media.AudioTrack.IOnRoutingChangedListener * Android.OS.Handler -> unit
override this.AddOnRoutingChangedListener : Android.Media.AudioTrack.IOnRoutingChangedListener * Android.OS.Handler -> unit

Parameters

listener
AudioTrack.IOnRoutingChangedListener

The AudioRouting.OnRoutingChangedListener interface to receive notifications of rerouting events.

handler
Handler

Specifies the Handler object for the thread on which to execute the callback. If <code>null</code>, the Handler associated with the main Looper will be used.

Attributes

Remarks

Java documentation for android.media.AudioTrack.addOnRoutingChangedListener(android.media.OnRoutingChangedListener, android.os.Handler).

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

AddOnRoutingChangedListener(IAudioRoutingOnRoutingChangedListener, Handler)

Adds an AudioRouting.OnRoutingChangedListener to receive notifications of routing changes on this AudioTrack.

[Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRouting_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=24)]
public virtual void AddOnRoutingChangedListener (Android.Media.IAudioRoutingOnRoutingChangedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRouting_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=24)>]
abstract member AddOnRoutingChangedListener : Android.Media.IAudioRoutingOnRoutingChangedListener * Android.OS.Handler -> unit
override this.AddOnRoutingChangedListener : Android.Media.IAudioRoutingOnRoutingChangedListener * Android.OS.Handler -> unit

Parameters

listener
IAudioRoutingOnRoutingChangedListener

The AudioRouting.OnRoutingChangedListener interface to receive notifications of rerouting events.

handler
Handler

Specifies the Handler object for the thread on which to execute the callback. If <code>null</code>, the Handler associated with the main Looper will be used.

Implements

Attributes

Remarks

Java documentation for android.media.AudioTrack.addOnRoutingChangedListener(android.media.OnRoutingChangedListener, android.os.Handler).

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