MediaProjection.RegisterCallback(MediaProjection+Callback, Handler) 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.
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
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)>