Skip to content

Computer system

The information refer to the computer system on native macOS

Original source

The computer system information are retrieved from the MacOsComputerSystem interface, which inherits ComputerSystem

KInfo's source

val computerSystem: MacOsComputerSystem = hardware.computerSystem

Retrieve hardware as shown in the Hardware API. Unavailable machine identity values can be empty strings

Properties

manufacturer

The manufacturer of the computer system

val manufacturer: String = computerSystem.manufacturer

println(manufacturer) // e.g. Apple Inc.

model

The model identifier of the computer system

val model: String = computerSystem.model

println(model) // e.g. MacBookAir10,1

serialNumber

The serial number of the computer system

val serialNumber: String = computerSystem.serialNumber

println(serialNumber) // e.g. EXAMPLE123456

hardwareUUID

The hardware UUID of the computer system

val hardwareUUID: String = computerSystem.hardwareUUID

println(hardwareUUID) // e.g. 00000000-0000-0000-0000-000000000000

firmware

The firmware information of the computer system

val firmware: Firmware = computerSystem.firmware

println(firmware)

baseboard

The baseboard information of the computer system

val baseboard: Baseboard = computerSystem.baseboard

println(baseboard)