brightness.level
From 0 to 1: the app's level if it set one, otherwise the system's; null
until the platform first answers. Assigning sets the app's level: a level
outside 0 to 1 throws a RangeError, and a rejected write goes through the
error seam.
Usage
Temporarily change brightness
import { Text, brightness } from 'kuito';
brightness.level.value = 1; // a QR code, a boarding pass
<Text>{`${brightness.level.value ?? '…'}`}</Text>;
await brightness.restore();Properties and methods 1
| Name | Type | Required | Description |
|---|---|---|---|
value | number | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.