Android.Hardware.Camera2.CameraManager.RegisterAvailabilityCallback Method
Register a callback to be notified about camera device availability.

Syntax

[Android.Runtime.Register("registerAvailabilityCallback", "(Landroid/hardware/camera2/CameraManager$AvailabilityCallback;Landroid/os/Handler;)V", "")]
public void RegisterAvailabilityCallback (CameraManager.AvailabilityCallback callback, Android.OS.Handler handler)

Parameters

callback
the new callback to send camera availability notices to
handler
The handler on which the callback should be invoked, or null to use the current thread's Android.OS.Looper.

Remarks

Register a callback to be notified about camera device availability.

Registering the same callback again will replace the handler with the new one provided.

The first time a callback is registered, it is immediately called with the availability status of all currently known camera devices.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0