window.WindowInsets
How far the system bars, the notch and the home indicator reach into the window.
Utilização
Read the current viewport
Este tipo é usado por 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 }Declaração do tipo
export type WindowInsets = Insets;Membros 4
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
top | number | Sim | — |
left | number | Sim | — |
bottom | number | Sim | — |
right | number | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.