Compartir a través de


AudioTrack.RegisterStreamEventCallback Method

Definition

Registers a callback for the notification of stream events.

[Android.Runtime.Register("registerStreamEventCallback", "(Ljava/util/concurrent/Executor;Landroid/media/AudioTrack$StreamEventCallback;)V", "GetRegisterStreamEventCallback_Ljava_util_concurrent_Executor_Landroid_media_AudioTrack_StreamEventCallback_Handler", ApiSince=29)]
public virtual void RegisterStreamEventCallback (Java.Util.Concurrent.IExecutor executor, Android.Media.AudioTrack.StreamEventCallback eventCallback);
[<Android.Runtime.Register("registerStreamEventCallback", "(Ljava/util/concurrent/Executor;Landroid/media/AudioTrack$StreamEventCallback;)V", "GetRegisterStreamEventCallback_Ljava_util_concurrent_Executor_Landroid_media_AudioTrack_StreamEventCallback_Handler", ApiSince=29)>]
abstract member RegisterStreamEventCallback : Java.Util.Concurrent.IExecutor * Android.Media.AudioTrack.StreamEventCallback -> unit
override this.RegisterStreamEventCallback : Java.Util.Concurrent.IExecutor * Android.Media.AudioTrack.StreamEventCallback -> unit

Parameters

executor
IExecutor

Executor to handle the callbacks.

eventCallback
AudioTrack.StreamEventCallback

the callback to receive the stream event notifications.

Attributes

Remarks

Java documentation for android.media.AudioTrack.registerStreamEventCallback(java.util.concurrent.Executor, android.media.StreamEventCallback).

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