CameraDeviceSelector Class¶
This type is an EasyAR Sense API in C#: CameraDeviceSelector . Some descriptions may not apply to Unity environment on this page.
Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.
Description¶
It is used for selecting camera API (camera1 or camera2) on Android. camera1 is better for compatibility, but lacks some necessary information such as timestamp. camera2 has compatibility issues on some devices.
Different preferences will choose camera1 or camera2 based on usage.
Methods¶
getAndroidCameraApiType¶
- C#
public static AndroidCameraApiType getAndroidCameraApiType( CameraDevicePreference preference)
Gets recommended Android Camera API type by a specified preference.
createCameraDevice¶
- C#
public static CameraDevice createCameraDevice( CameraDevicePreference preference)
Creates CameraDevice by a specified preference.
getFocusMode¶
- C#
public static CameraDeviceFocusMode getFocusMode( CameraDevicePreference preference)
Gets recommended Camera FocusMode type by a specified preference.