Interfaces
IDevice
IDevice
interface IDevice {
deviceType: "Phone" | "Tablet";
language: string;
manufacturer: string;
model: string;
os: string;
osVersion: string;
region: string;
sdkVersion: string;
uuid: string;
}
Summary
Properties
deviceType
defined in @nativescript/core/platform/index.d.ts:63:1
Gets the type of the current device.
Available values: "Phone", "Tablet".
language
defined in @nativescript/core/platform/index.d.ts:76:1
Gets the preferred language. For example "en" or "en-US".
manufacturer
defined in @nativescript/core/platform/index.d.ts:33:1
Gets the manufacturer of the device.
For example: "Apple" or "HTC" or "Samsung".
model
defined in @nativescript/core/platform/index.d.ts:39:1
Gets the model of the device.
For example: "Nexus 5" or "iPhone".
os
defined in @nativescript/core/platform/index.d.ts:45:1
Gets the OS of the device.
For example: "Android" or "iOS".
osVersion
defined in @nativescript/core/platform/index.d.ts:51:1
Gets the OS version.
For example: 4.4.4(android), 8.1(ios)
region
defined in @nativescript/core/platform/index.d.ts:81:1
Gets the preferred region. For example "US".
sdkVersion
defined in @nativescript/core/platform/index.d.ts:57:1
Gets the SDK version.
For example: 19(android), 8.1(ios).
uuid
defined in @nativescript/core/platform/index.d.ts:71:1
Gets the uuid.
On iOS this will return a new uuid if the application is re-installed on the device.
If you need to receive the same uuid even after the application has been re-installed on the device,
use this plugin: https://www.npmjs.com/package/nativescript-ios-uuid
- Previous
- HttpResponse
- Next
- ImageAssetOptions