IDisplayPlatform
interface
Display & Responsive
Platform detection snapshot — a set of boolean flags that identify the current runtime environment (OS, browser, form factor). Exposed as `platform` on the IDisplayInstance reactive object.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- androidrequisboolean
- True when the UA suggests an Android device.
- iosrequisboolean
- True when the UA suggests an iOS device.
- cordovarequisboolean
- True when running inside a Cordova/Capacitor shell.
- electronrequisboolean
- True when running inside Electron.
- chromerequisboolean
- True when the UA is Chromium-based.
- edgerequisboolean
- True when the UA is Microsoft Edge.
- firefoxrequisboolean
- True when the UA is Firefox.
- operarequisboolean
- True when the UA is Opera.
- winrequisboolean
- True when the OS is Windows.
- macrequisboolean
- True when the OS is macOS.
- linuxrequisboolean
- True when the OS is Linux (non-Android).
- touchrequisboolean
- True when a primary touch input is detected.
- ssrrequisboolean
- True when the code runs in a server-side rendering context.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Reading platform flags from useDisplay()