Package-level declarations

Functions

Link copied to clipboard

Applies a max (or custom) screen brightness to the current Activity's window only when in landscape. When leaving landscape or when the composable leaves composition, the previous window value is restored.

Link copied to clipboard

Walks up the Context chain to find an Activity, or returns null.

Link copied to clipboard
Link copied to clipboard
fun rememberMotionActive(thresholdMps2: Float = 1.2f, holdMs: Long = 900): Boolean

Returns true while motion is detected (and for holdMs after the last motion). Uses TYPE_LINEAR_ACCELERATION if available; falls back to accelerometer with a simple high-pass.