@totvs/mingle-ionic-device

1.0.0-20200724.2 • Public • Published

@TOTVS/MINGLE-IONIC-DEVICE

This Package get informations about the device.

Installation

Using npm: $ npm install --save @totvs/mingle-ionic-device

// using ES6 modules
import { DevicePlugin } from @totvs/mingle-ionic-device;

// using CommonJS modules
var devicePlugin = require('@totvs/mingle-ionic-device')

Usage

Create an instance of the DevicePlugin:

var devicePlugin = new DevicePlugin();

getDeviceInfos

This method is used to retrieve information about the device. The returned array contains the following fields:

  • CONTAINER_VERSION: Version of Cordova running on the device;
  • MANUFACTURER: Device's manufacturer;
  • MODEL: The 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: Device's operating system name (Android, Browser, iOS, Windows and OSX );
  • PLATFORM_VERSION: Operating system version
  • SERIAL: Hardware serial number;
  • UUID: Device's Universally Unique Identifier;
this.devicePlugin.getDeviceInfos();

getDeviceUUID

This method is used to retrieve the device's Universally Unique Identifier (UUID).

this.devicePlugin.getDeviceUUID();

Readme

Keywords

none

Package Sidebar

Install

npm i @totvs/mingle-ionic-device

Weekly Downloads

3

Version

1.0.0-20200724.2

License

ISC

Unpacked Size

6.01 kB

Total Files

8

Last publish

Collaborators

  • jcorrea97
  • mingle.dev
  • rogerio.fialho
  • dev.totvs
  • felipecrescencio
  • nicoleoliveira
  • felipeconti
  • alexmmartins
  • danotto
  • mansano
  • rogeriorc
  • tvmatias
  • robson.dba
  • daniel.yampolschi
  • acandido
  • lwtnb.wrk
  • pouidev
  • alinelariguet
  • roger.steuernagel
  • totvstec-bot