ServiceIdentifier
public struct ServiceIdentifier
A wrapper for CBUUID specific to a service to help distinguish it from a CBUUID of a characteristic.
-
The
CBUUIDof this service.Declaration
Swift
public private(set) var uuid: CBUUID -
Create a
ServiceIdentifierusing a string. Please supply a valid 128-bit UUID, or a valid 16 or 32-bit commonly used UUID.Warning
If the uuid string provided is invalid and cannot be converted to aCBUUID, then there will be a fatal error.Declaration
Swift
public init(uuid: String) -
Create a
ServiceIdentifierusing aCBUUID.Declaration
Swift
public init(uuid: CBUUID)
-
Check equality between two ServiceIdentifier.
Declaration
Swift
public static func == (lhs: ServiceIdentifier, rhs: ServiceIdentifier) -> Bool
-
The hash value of the
CBUUID.Declaration
Swift
public var hashValue: Int { get }
View on GitHub
ServiceIdentifier Structure Reference