New function (Android only)
New functions (iOS + Android)
Dropped support for advertising identifier
New functions:
Optimized for ShiVa 1.9.2 New functions:
--jpDeviceInfo API nHeight = jpDeviceInfo.getScreenHeight ( ) nWidth = jpDeviceInfo.getScreenWidth ( ) nSize = jpDeviceInfo.getScreenSize ( ) sModel = jpDeviceInfo.getModel ( ) sSystemName = jpDeviceInfo.getSystemName ( ) sSystemVersion = jpDeviceInfo.getSystemVersion ( ) bYes = jpDeviceInfo.isMultitaskingSupported ( ) --Android only sDirectory = jpDeviceInfo.getExternalStorageDirectory ( ) --iOS/tvOS only sIdentifierForVendor = jpDeviceInfo.getIdentifierForVendor ( ) sLocalizedModel = jpDeviceInfo.getLocalizedModel ( ) sName = jpDeviceInfo.getName ( ) bYes = jpDeviceInfo.isSimulator ( ) --iOS/tvOS only : Get data from settings (Settings.bundle/Root.plist) bBoolean = jpDeviceInfo.getBooleanFromSettings ( sKey ) sString = jpDeviceInfo.getStringFromSettings ( sKey )
This plugin allows you to get information about the device your application is running on, such as device model, device OS, OS version, etc. Here are a couple of functions jpDeviceInfo has (to view the full API, just click the link below):
nHeight = jpDeviceInfo.getScreenHeight ( ) nWidth = jpDeviceInfo.getScreenWidth ( ) sModel = jpDeviceInfo.getModel ( ) sSystemName = jpDeviceInfo.getSystemName ( ) sSystemVersion = jpDeviceInfo.getSystemVersion ( )