ExtensionDisabledQuirk
@RequiresApi(21) open class ExtensionDisabledQuirk : Quirk
kotlin.Any | |
↳ | androidx.camera.extensions.internal.compat.quirk.ExtensionDisabledQuirk |
QuirkSummary Bug Id: b/199408131, b/214130117 Description: Quirk required to disable extension for some devices. An example is that Pixel 5's availability check result of the basic extension interface should be false, but it actually returns true. Therefore, force disable Basic Extender capability on the device. Another example is that Motorola razr 5G's availability check results of both back and front camera are true, but it will cause the black preview screen issue. Therefore, force disable the bokeh mode on the device. Device(s): Pixel 5, Motorola razr 5G
Summary
Public constructors | |
---|---|
QuirkSummary Bug Id: b/199408131, b/214130117 Description: Quirk required to disable extension for some devices. |
Public methods | |
---|---|
open Boolean |
shouldDisableExtension(@NonNull cameraId: String, extensionMode: Int) Checks whether extension should be disabled. |
Public constructors
ExtensionDisabledQuirk
ExtensionDisabledQuirk()
QuirkSummary Bug Id: b/199408131, b/214130117 Description: Quirk required to disable extension for some devices. An example is that Pixel 5's availability check result of the basic extension interface should be false, but it actually returns true. Therefore, force disable Basic Extender capability on the device. Another example is that Motorola razr 5G's availability check results of both back and front camera are true, but it will cause the black preview screen issue. Therefore, force disable the bokeh mode on the device. Device(s): Pixel 5, Motorola razr 5G
Public methods
shouldDisableExtension
open fun shouldDisableExtension(
@NonNull cameraId: String,
extensionMode: Int
): Boolean
Checks whether extension should be disabled.