Freigeben über


AudioManager.AddOnModeChangedListener Method

Definition

Adds a listener to be notified of changes to the audio mode.

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

Parameters

executor
IExecutor
Attributes

Remarks

Java documentation for android.media.AudioManager.addOnModeChangedListener(java.util.concurrent.Executor, android.media.OnModeChangedListener).

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