WindowOrientation
Whether the window is taller than wide or wider than tall, for picking a layout.
Utilização
Read the current viewport
Este tipo é usado por window.orientation
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 WindowOrientation = Orientation;Tipo
"portrait" | "landscape"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.