HardwareInfo

@Serializable
data class HardwareInfo(var hardware: String = "test", var manufacturer: String = "", var storage: Long, var memory: Long, var cpu: Int, val display: Map<String, Int>?, val camera: Map<String, Int>?)

Data class containing comprehensive hardware information about the Android device.

Constructors

Link copied to clipboard
constructor(hardware: String = "test", manufacturer: String = "", storage: Long, memory: Long, cpu: Int, display: Map<String, Int>?, camera: Map<String, Int>?)

Properties

Link copied to clipboard

Map containing camera information with "noOfCameras" key, null if camera access fails

Link copied to clipboard
var cpu: Int

Number of available CPU cores

Link copied to clipboard

Map containing display dimensions with "width" and "height" keys in pixels, null if unavailable

Link copied to clipboard

The hardware identifier from Build.HARDWARE, defaults to "MyHardware" if null

Link copied to clipboard

The device manufacturer from Build.MANUFACTURER

Link copied to clipboard

Total system memory (RAM) in megabytes (MB)

Link copied to clipboard

Total internal storage capacity in gigabytes (GB)