DeviceInfoProfiler

Functions

Link copied to clipboard
Link copied to clipboard
fun getTotalRamInGB(context: Context): Int

Returns the total physical RAM of the device in gigabytes (GB).

Link copied to clipboard

Checks if the device's GPU meets the minimum OpenGL ES version requirement (3.0+). This should only be called if memory is already deemed sufficient.

Link copied to clipboard

Checks if the device has sufficient available memory (at least 1 GB and not in a low memory state). This should be checked before initiating any heavy operation.

Link copied to clipboard

Returns {@code true} if this device's SoC is on the denylist for 3D map rendering. See {@link #DENYLISTED_SOC_PREFIXES_FOR_3D} for the known-bad list. Callers that gate 3D rendering should treat this as a hard "do not enable 3D" signal regardless of memory / GPU capability.

Link copied to clipboard

Determines if the device meets performance requirements for running heavy operations. First ensures sufficient memory, then verifies GPU capability, and finally rejects devices on the 3D crash denylist (Carto Mobile SDK + Tensor G3/G4/G5 known-bad combinations).