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