Platform classes
For much more detailed platform- or device-specific information, a platform class is provided with NativeScript and is used like this:
var platform = require("platform"); // Device Specifics console.log("Manufacturer:", platform.device.manufacturer); console.log("Platform os:", platform.device.os); console.log("Os version:", platform.device.osVersion); console.log("Model:", platform.device.model); console.log("SDK Version:", platform.device.sdkVersion); console.log("Device Type:", platform.device.deviceType); console.log("uuid:", platform.device.uuid); console.log("Language:", platform.device.language); // Screen Specifics console.log("Screen width in pixels:", platform.screen.mainScreen.widthPixels); console.log("Screen height in pixels:", platform.screen.mainScreen.heightPixels); console.log("Screen width in DIPs:", platform.screen.mainScreen.widthDIPs); console.log("Screen height in DIPs:", platform.screen.mainScreen.heightDIPs); console.log("Screen scale:", platform...