* fix: Expose auto-focus system for Android * Add `autoFocusSystem` to filter * Update CameraDeviceDetails.kt * Update getCameraFormat.ts
16 lines
458 B
Kotlin
16 lines
458 B
Kotlin
package com.mrousavy.camera.types
|
|
|
|
enum class AutoFocusSystem(override val unionValue: String) : JSUnionValue {
|
|
PHASE_DETECTION("phase-detection"),
|
|
CONTRAST_DETECTION("contrast-detection"),
|
|
NONE("none");
|
|
|
|
companion object : JSUnionValue.Companion<AutoFocusSystem> {
|
|
override fun fromUnionValue(unionValue: String?): AutoFocusSystem =
|
|
when (unionValue) {
|
|
"contrast-detection" -> CONTRAST_DETECTION
|
|
else -> NONE
|
|
}
|
|
}
|
|
}
|