MediaCodec.SetCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| 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. |
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
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.
[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
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
Callbacks run on the handler's thread. If this is null, the default handler uses the codec creation thread's looper, or the main looper if available and the creation thread has none.
- Attributes
Remarks
Android reference for android.media.MediaCodec.setCallback.
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.