getTotalRamInGB

fun getTotalRamInGB(context: Context): Int

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

Return

Total RAM size in GB, rounded to the nearest integer.

Parameters

context

Context used to access system services.