Device info
The device information refers to the details of the device on which the application using KInfo is currently running
name
The name of the current device
Original source
The name of the device is retrieved from UIDevice.currentDevice.name property
KInfo's source
systemName
The name of the iOS operating system
Original source
The name of the iOS is retrieved from UIDevice.currentDevice.systemName property
KInfo's source
systemVersion
The version of the iOS operating system
Original source
The iOS version is retrieved from UIDevice.currentDevice.systemVersion property
KInfo's source
model
The model identifier of the current device
Original source
The model identifier is retrieved from UIDevice.currentDevice.model property
KInfo's source
localizedModel
The localized model name of the current device
Original source
The localized model name is retrieved from UIDevice.currentDevice.localizedModel property
KInfo's source
identifierForVendor
The unique identifier for the vendor associated with the app
Original source
The identifier for the vendor is retrieved from UIDevice.currentDevice.identifierForVendor.UUIDString property
KInfo's source
val identifierForVendor: String = iosInfo.identifierForVendor
println(identifierForVendor) // e.g. E123456789
isPhysicalDevice
Indicates whether the current device is physical or a simulator
Original source
The value is retrieved from NSProcessInfo.processInfo.environment property
KInfo's source
isMultitaskingSupported
Indicates whether the current iOS device supports multitasking
Original source
The value is retrieved from UIDevice.currentDevice.isMultitaskingSupported() method
KInfo's source
val isMultitaskingSupported: Boolean = iosInfo.isMultitaskingSupported
println(isMultitaskingSupported) // true or false
isGeneratingDeviceOrientationNotifications
Indicates whether the current device is generating notifications for orientation changes
Original source
The value is retrieved from UIDevice.currentDevice.isGeneratingDeviceOrientationNotifications() method
KInfo's source
val isGeneratingNotifications: Boolean = iosInfo.isGeneratingDeviceOrientationNotifications
println(isGeneratingNotifications) // true or false
deviceOrientation
The current orientation of the device
Original source
The orientation value is retrieved from IosDeviceOrientationImpl property
KInfo's source
Properties
isPortrait
Whether the device is currently in portrait mode
isLandscape
Whether the device is currently in landscape mode