CameraManager.AvailabilityCallback.OnCameraUnavailable(String) 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.
A previously-available camera has become unavailable for use.
[Android.Runtime.Register("onCameraUnavailable", "(Ljava/lang/String;)V", "GetOnCameraUnavailable_Ljava_lang_String_Handler")]
public virtual void OnCameraUnavailable (string cameraId);
[<Android.Runtime.Register("onCameraUnavailable", "(Ljava/lang/String;)V", "GetOnCameraUnavailable_Ljava_lang_String_Handler")>]
abstract member OnCameraUnavailable : string -> unit
override this.OnCameraUnavailable : string -> unit
Parameters
- cameraId
- String
The unique identifier of the disconnected camera.
- Attributes
Remarks
A previously-available camera has become unavailable for use.
If an application had an active CameraDevice instance for the now-disconnected camera, that application will receive a CameraDevice.StateCallback#onDisconnected disconnection error
.
The default implementation of this method does nothing.
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.