Udostępnij za pośrednictwem


CameraManager.AvailabilityCallback.OnCameraUnavailable(String) Method

Definition

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.

Java documentation for android.hardware.camera2.CameraManager.AvailabilityCallback.onCameraUnavailable(java.lang.String).

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