iOS Version
Version is an enum used to represent different versions of an object with additional fields.
HMAccessCertificateVersion
Basic access certificate with no additional fields
Declaration
.basic
Returns
HMAccessCertificate.Version
Example
import HMKit
let version: HMAccessCertificate.Version = .basic
Version 1 access certificate with one additional field
Declaration
.one(issuer: [UInt8])
Parameters
issuer | (UInt8 Collection) issuer of the certificate |
Returns
HMAccessCertificate.Version
Example
import HMKit
let issuer: [UInt8] = [0xAA, 0x12, 0xFD, 0x89]
let version: HMAccessCertificate.Version = .one(issuer: issuer)
HMDeviceCertificate.Version
Basic device certificate with no additional fields
Declaration
.basic
Returns
HMDeviceCertificate.Version
Example
import HMKit
let version: HMDeviceCertificate.Version = .basic
Conforming
Codable
Declaration
protocol Codable = Decodable & Encodable
Discussion
A type that can convert itself into and out of an external representation.
Read More
Equatable
Declaration
protocol Equatable
Discussion
A type that can be compared for value equality.
Read More
HMValueGettable
Declaration
protocol HMValueGettable
Discussion
A type that can return its value in UInt8