DeviceInfo
@objcMembers
public class DeviceInfo : NSObject
extension DeviceInfo: JsonString
Details about the current device
-
The device model. E.g. iPhone11,6
Declaration
Swift
public let deviceType: String
-
Operating system details
Declaration
Swift
public let osInfo: OperatingSystemInfo
-
Convert to JSON string
This function throws an error if JSON encoding process fails
Declaration
Swift
@objc(toJson:) public func toJson() throws -> String