AudioTrack.AddOnCodecFormatChangedListener Method

Definition

Adds an OnCodecFormatChangedListener to receive notifications of codec format change events on this AudioTrack.

[Android.Runtime.Register("addOnCodecFormatChangedListener", "(Ljava/util/concurrent/Executor;Landroid/media/AudioTrack$OnCodecFormatChangedListener;)V", "GetAddOnCodecFormatChangedListener_Ljava_util_concurrent_Executor_Landroid_media_AudioTrack_OnCodecFormatChangedListener_Handler", ApiSince=30)]
public virtual void AddOnCodecFormatChangedListener (Java.Util.Concurrent.IExecutor executor, Android.Media.AudioTrack.IOnCodecFormatChangedListener listener);
[<Android.Runtime.Register("addOnCodecFormatChangedListener", "(Ljava/util/concurrent/Executor;Landroid/media/AudioTrack$OnCodecFormatChangedListener;)V", "GetAddOnCodecFormatChangedListener_Ljava_util_concurrent_Executor_Landroid_media_AudioTrack_OnCodecFormatChangedListener_Handler", ApiSince=30)>]
abstract member AddOnCodecFormatChangedListener : Java.Util.Concurrent.IExecutor * Android.Media.AudioTrack.IOnCodecFormatChangedListener -> unit
override this.AddOnCodecFormatChangedListener : Java.Util.Concurrent.IExecutor * Android.Media.AudioTrack.IOnCodecFormatChangedListener -> unit

Parameters

executor
IExecutor

Specifies the Executor object to control execution.

listener
AudioTrack.IOnCodecFormatChangedListener

The OnCodecFormatChangedListener interface to receive notifications of codec events.

Attributes

Remarks

Java documentation for android.media.AudioTrack.addOnCodecFormatChangedListener(java.util.concurrent.Executor, android.media.OnCodecFormatChangedListener).

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