Aracılığıyla paylaş


MediaCodec.SetCallback Method

Definition

Overloads

SetCallback(MediaCodec+Callback)

Sets an asynchronous callback for actionable MediaCodec events on the default looper.

SetCallback(MediaCodec+Callback, Handler)

Sets an asynchronous callback for actionable MediaCodec events on the default looper.

SetCallback(MediaCodec+Callback)

Sets an asynchronous callback for actionable MediaCodec events on the default looper.

[Android.Runtime.Register("setCallback", "(Landroid/media/MediaCodec$Callback;)V", "")]
public void SetCallback (Android.Media.MediaCodec.Callback? cb);
[<Android.Runtime.Register("setCallback", "(Landroid/media/MediaCodec$Callback;)V", "")>]
member this.SetCallback : Android.Media.MediaCodec.Callback -> unit

Parameters

cb
MediaCodec.Callback

The callback that will run. Use null to clear a previously set callback (before #configure configure is called and run in synchronous mode).

Attributes

Remarks

Java documentation for android.media.MediaCodec.setCallback(android.media.Callback).

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.

See also

  • <xref:Android.Media.MediaCodec.SetCallback(.Callback%2c+Android.OS.Handler)>

Applies to

SetCallback(MediaCodec+Callback, Handler)

Sets an asynchronous callback for actionable MediaCodec events on the default looper.

[Android.Runtime.Register("setCallback", "(Landroid/media/MediaCodec$Callback;Landroid/os/Handler;)V", "", ApiSince=23)]
public void SetCallback (Android.Media.MediaCodec.Callback? cb, Android.OS.Handler? handler);
[<Android.Runtime.Register("setCallback", "(Landroid/media/MediaCodec$Callback;Landroid/os/Handler;)V", "", ApiSince=23)>]
member this.SetCallback : Android.Media.MediaCodec.Callback * Android.OS.Handler -> unit

Parameters

cb
MediaCodec.Callback

The callback that will run. Use null to clear a previously set callback (before #configure configure is called and run in synchronous mode).

handler
Handler
Attributes

Remarks

Java documentation for android.media.MediaCodec.setCallback(android.media.Callback).

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