Share via


MediaProjection.RegisterCallback(MediaProjection+Callback, Handler) Method

Definition

Register a listener to receive notifications about when the MediaProjection changes state.

[Android.Runtime.Register("registerCallback", "(Landroid/media/projection/MediaProjection$Callback;Landroid/os/Handler;)V", "")]
public void RegisterCallback (Android.Media.Projection.MediaProjection.Callback callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("registerCallback", "(Landroid/media/projection/MediaProjection$Callback;Landroid/os/Handler;)V", "")>]
member this.RegisterCallback : Android.Media.Projection.MediaProjection.Callback * Android.OS.Handler -> unit

Parameters

callback
MediaProjection.Callback

The callback to call.

handler
Handler

The handler on which the callback should be invoked, or null if the callback should be invoked on the calling thread's looper.

Attributes

Remarks

Java documentation for android.media.projection.MediaProjection.registerCallback(android.media.projection.Callback, android.os.Handler).

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

See also

  • <xref:Android.Media.Projection.MediaProjection.UnregisterCallback(.Callback)>