WakeLockConfig

data class WakeLockConfig(val tag: String, val levelAndFlags: Int = PowerManager.PARTIAL_WAKE_LOCK, val timeoutMs: Long = 0)(source)

Décrit un WakeLock à acquérir.

Presets :

Remarque : Pour maintenir l'écran allumé (dim/bright), utiliser FLAG_KEEP_SCREEN_ON au niveau de l'Activity / View au lieu de PowerManager. WakeLock.

Constructors

Link copied to clipboard
constructor(tag: String, levelAndFlags: Int = PowerManager.PARTIAL_WAKE_LOCK, timeoutMs: Long = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val tag: String
Link copied to clipboard