Since

0.1

Hardware is used to retrieve hardware specific information of the device.

Example

import Hardware from '@smartface/native/device/hardware';
console.log("Device.Hardware.IMEI: " + Hardware.android.IMEI);
console.log("Device.Hardware.UID: " + Hardware.UID);
console.log("Device.Hardware.brandName: " + Hardware.brandName);
console.log("Device.Hardware.brandModel: " + Hardware.brandModel);
console.log("Device.Hardware.vendorID: " + Hardware.android.vendorID);

Hierarchy

Properties

nativeObject: any
ios: Partial<HardwareIOSProps>
android: Partial<HardwareAndroidProps>
UID: string

Returns the unique id of the device. The value may change if the device is formatted.

Property

Android

Ios

Static

Since

0.1

brandModel: string

Returns the model name of the device.

Property

Android

Ios

Static

Since

0.1

brandName: string

Returns the brand name of the device.

Property

Android

Ios

Static

Since

0.1

modelName: string

Gets human readable modelname of the device.

Ios

Android

Example

import Hardware from '@smartface/native/device/hardware';

Hardware.modelName; // iPhone X
Hardware.modelName; // Samsung Galaxy S10
deviceType: DeviceType

DeviceType is to determine if the current device which the application is open is phone, tablet or else.

manufacturer: string

Returns the manufacturer of the device.

Android

Static

Methods

  • Readonly

    Returns the device model name.

    Deprecated

    Use Hardware.modelName instead

    Android

    Ios

    Static

    Since

    0.1

    Returns string

Generated using TypeDoc