CameraManager.IsCameraDeviceSetupSupported(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.
Checks a Camera Device's characteristics to ensure that a
CameraDevice.CameraDeviceSetup instance can be constructed for a given
cameraId.
[Android.Runtime.Register("isCameraDeviceSetupSupported", "(Ljava/lang/String;)Z", "", ApiSince=35)]
public bool IsCameraDeviceSetupSupported(string cameraId);
[<Android.Runtime.Register("isCameraDeviceSetupSupported", "(Ljava/lang/String;)Z", "", ApiSince=35)>]
member this.IsCameraDeviceSetupSupported : string -> bool
Parameters
- cameraId
- String
The unique identifier of the camera device for which
CameraDevice.CameraDeviceSetup support is being queried. This
identifier must be present in #getCameraIdList().
Returns
true if CameraDevice.CameraDeviceSetup object can be constructed
for the provided cameraId; false otherwise.
- Attributes
Remarks
Checks a Camera Device's characteristics to ensure that a CameraDevice.CameraDeviceSetup instance can be constructed for a given cameraId. If this method returns false for a cameraId, calling #getCameraDeviceSetup for that cameraId will throw an UnsupportedOperationException.
CameraDevice.CameraDeviceSetup is supported for all devices that report CameraCharacteristics#INFO_SESSION_CONFIGURATION_QUERY_VERSION > android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE
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.