model/device_info_app_model library

Classes

DeviceInfo
Snapshot of device and app info collected from the native platform.
LocaleApp
The device's language and country locale, split into components.
Utsname
POSIX uname() info. Populated on both Android and iOS since both run on top of a kernel that exposes this via the uname syscall.

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.