device.DeviceType
What kind of device the app runs on.
Verwendung
Build a support summary
Dieser Typ wird verwendet von device.type
import { device } from 'kuito';
device.model; // 'iPhone 16 Pro', 'Pixel 8'
device.type === 'tablet';
if (!device.physical) console.log('on a simulator');Typdeklaration
export type DeviceType = 'unknown' | 'phone' | 'tablet' | 'desktop' | 'tv';Typ
"unknown" | "phone" | "tablet" | "desktop" | "tv"Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.