@ionic-native/device

  • Version 5.33.1
  • Published
  • 19.8 kB
  • 1 dependency
  • MIT license

Install

npm i @ionic-native/device
yarn add @ionic-native/device
pnpm add @ionic-native/device

Overview

Ionic Native - Native plugins for ionic apps

Index

Variables

variable Device

const Device: DeviceOriginal;

    Classes

    class DeviceOriginal

    class DeviceOriginal extends IonicNativePlugin {}
    • Device device Access information about the underlying device and platform.

      import { Device } from '@ionic-native/device/ngx';
      constructor(private device: Device) { }
      ...
      console.log('Device UUID is: ' + this.device.uuid);

    property cordova

    cordova: string;
    • Get the version of Cordova running on the device.

    property isVirtual

    isVirtual: boolean;
    • Whether the device is running on a simulator.

    property manufacturer

    manufacturer: string;
    • Get the device's manufacturer.

    property 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.

    property platform

    platform: string;
    • Get the device's operating system name.

    property serial

    serial: string;
    • Get the device hardware serial number.

    property uuid

    uuid: string;
    • Get the device's Universally Unique Identifier (UUID).

    property version

    version: string;
    • Get the operating system version.

    Package Files (1)

    Dependencies (1)

    Dev Dependencies (0)

    No dev dependencies.

    Peer Dependencies (2)

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@ionic-native/device.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@ionic-native/device)
    • HTML
      <a href="https://www.jsdocs.io/package/@ionic-native/device"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>