window.WindowInsets
How far the system bars, the notch and the home indicator reach into the window.
Verwendung
Read the current viewport
Dieser Typ wird verwendet von window.insets
import { Text, window } from 'kuito';
<Text>{`${window.size.value.width} × ${window.size.value.height}`}</Text>;
<Text>{window.orientation.value === 'landscape' ? 'Wide' : 'Tall'}</Text>;
window.insets.value; // { top, left, bottom, right }Typdeklaration
export type WindowInsets = Insets;Mitglieder 4
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
top | number | Ja | — |
left | number | Ja | — |
bottom | number | Ja | — |
right | number | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.