CameraDeviceSelector Class¶
Description¶
用于在Android上选择Camera API(camera1或camera2)。camera1兼容性较好,但缺乏一些必要的信息,如时间戳。camera2在部分设备上存在兼容性问题。
不同选项会根据用途选择camera1或camera2。
createCameraDevice¶
以指定选项创建 CameraDevice 。
- 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)¶