Flash

class Flash(source)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Gets the range of supported flash strength. Range is from 1-x.

Link copied to clipboard

Gets the default flash strength. Range is from availableStrengthLevelRange.

Link copied to clipboard

Whether the the current camera has a flash device.

Link copied to clipboard
@get:RequiresPermission(value = "android.permission.CAMERA")
val isEnable: Boolean

Enables or disables flash.

Link copied to clipboard
@get:RequiresApi(value = 35)
@get:RequiresPermission(value = "android.permission.CAMERA")
val strengthLevel: Int

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.CAMERA")
suspend fun setIsEnable(isEnable: Boolean)

Enable or disable the flash.

Link copied to clipboard
@RequiresApi(value = 35)
@RequiresPermission(value = "android.permission.CAMERA")
suspend fun setStrengthLevel(level: Int)

Sets the flash strength.