window.orientation
landscape when the window is wider than it is tall.
Utilização
Read the current viewport
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 }Propriedades e métodos 1
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
valuesó de leitura | WindowOrientation | 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.