model/device_info_app_model library

Classes

DeviceInfo
Snapshot of device and app info returned by the native platform.
LocaleApp
The device's language and country locale, split into components.
Utsname
POSIX uname() info for the device.

Functions

roundDouble(double value, int places) → int
Rounds value to places decimal places, then buckets the result to the nearest marketed RAM size (2, 4, or 6 GB).
totalRamDevice(int physicalRamSize) → int
Converts a physical RAM size in megabytes to a bucketed GB value (2, 4, or 6) matching common marketed device RAM sizes.