Share via


AudioManager.AddOnCommunicationDeviceChangedListener Method

Definition

Adds a listener for being notified of changes to the communication audio device.

[Android.Runtime.Register("addOnCommunicationDeviceChangedListener", "(Ljava/util/concurrent/Executor;Landroid/media/AudioManager$OnCommunicationDeviceChangedListener;)V", "GetAddOnCommunicationDeviceChangedListener_Ljava_util_concurrent_Executor_Landroid_media_AudioManager_OnCommunicationDeviceChangedListener_Handler", ApiSince=31)]
public virtual void AddOnCommunicationDeviceChangedListener (Java.Util.Concurrent.IExecutor executor, Android.Media.AudioManager.IOnCommunicationDeviceChangedListener listener);
[<Android.Runtime.Register("addOnCommunicationDeviceChangedListener", "(Ljava/util/concurrent/Executor;Landroid/media/AudioManager$OnCommunicationDeviceChangedListener;)V", "GetAddOnCommunicationDeviceChangedListener_Ljava_util_concurrent_Executor_Landroid_media_AudioManager_OnCommunicationDeviceChangedListener_Handler", ApiSince=31)>]
abstract member AddOnCommunicationDeviceChangedListener : Java.Util.Concurrent.IExecutor * Android.Media.AudioManager.IOnCommunicationDeviceChangedListener -> unit
override this.AddOnCommunicationDeviceChangedListener : Java.Util.Concurrent.IExecutor * Android.Media.AudioManager.IOnCommunicationDeviceChangedListener -> unit

Parameters

executor
IExecutor
Attributes

Remarks

Java documentation for android.media.AudioManager.addOnCommunicationDeviceChangedListener(java.util.concurrent.Executor, android.media.OnCommunicationDeviceChangedListener).

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