CameraDeviceSelector Class¶
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.
createCameraDevice¶
Creates CameraDevice with a specified preference.
- C: void easyar_CameraDeviceSelector_createCameraDevice(easyar_CameraDevicePreference preference, easyar_CameraDevice * * Return)¶
- Traditional C++: static void createCameraDevice(CameraDevicePreference preference, CameraDevice * * Return)¶
- Java: public static @Nonnull CameraDevice createCameraDevice(int preference)¶
- Kotlin: companion object fun createCameraDevice(preference: Int): CameraDevice¶
- Objective-C: + (easyar_CameraDevice *)createCameraDevice:(easyar_CameraDevicePreference)preference¶
- Swift: public static func createCameraDevice(_ preference: CameraDevicePreference) -> CameraDevice¶
- C#: public static CameraDevice createCameraDevice(CameraDevicePreference preference)¶