Interfaces
IDevice
IDevice
interfaceIDevice {
deviceType:"Phone"|"Tablet";
language:string;
manufacturer:string;
model:string;
os:string;
osVersion:string;
region:string;
sdkVersion:string;
uuid:string;
}
Summary β
Properties
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
On this page