Search docs/

Device

v2.0.2

Contents

インストール

最初に(一度限りの) セットアップ手順を実行したら, プラグインをインストールします。

Cordova:ionic cordova plugin add @ionic-enterprise/device Capacitor:npm install @ionic-enterprise/device npx cap sync

Index

Classes


Classes

Device

Device:

name: Device

description: Access information about the underlying device and platform.

usage:

import { Device } from '@ionic-enterprise/device/ngx';

constructor(private device: Device) { }

...

console.log('Device UUID is: ' + this.device.uuid);

cordova

● cordova: string

Get the version of Cordova running on the device.


isVirtual

● isVirtual: boolean

Whether the device is running on a simulator.


manufacturer

● manufacturer: string

Get the device's manufacturer.


model

● model: string

The device.model returns the name of the device's model or product. The value is set by the device manufacturer and may be different across versions of the same product.


platform

● platform: string

Get the device's operating system name.


serial

● serial: string

Get the device hardware serial number.


uuid

● uuid: string

Get the device's Universally Unique Identifier (UUID).


version

● version: string

Get the operating system version.



Other Versions