UseTorchAsFlash

@RequiresApi(21) open class UseTorchAsFlash
kotlin.Any
   ↳ androidx.camera.camera2.internal.compat.workaround.UseTorchAsFlash

Workaround to use torch as flash.

Summary

Public constructors
UseTorchAsFlash(@NonNull quirks: Quirks)

Public methods
open Boolean

Returns if torch should be used as flash.

Public constructors

UseTorchAsFlash

UseTorchAsFlash(@NonNull quirks: Quirks)

Public methods

shouldUseTorchAsFlash

open fun shouldUseTorchAsFlash(): Boolean

Returns if torch should be used as flash.