CharacteristicIdentifier
public struct CharacteristicIdentifier
A wrapper for CBUUID specific to a characteristic to help distinguish it from a CBUUID of a service.
-
The service this characteristic belongs to.
Declaration
Swift
public let service: ServiceIdentifier -
The
CBUUIDof this characteristic.Declaration
Swift
public let uuid: CBUUID -
Create a
CharacteristicIdentifierusing aCBCharacterstic.Declaration
Swift
public init(_ cbCharacteristic: CBCharacteristic) -
Returns the essential description of a characteristic.
Declaration
Swift
public var description: String { get } -
Create a
CharacteristicIdentifierusing a string and aServiceIdentifier. 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, service: ServiceIdentifier) -
Create a
CharacteristicIdentifierusing aCBUUIDand aServiceIdentifier.Declaration
Swift
public init(uuid: CBUUID, service: ServiceIdentifier) -
Check equality between a
CharacteristicIdentifierand aCBCharacterstic.Declaration
Swift
public static func == (lhs: CharacteristicIdentifier, rhs: CBCharacteristic) -> Bool
-
Check equality between two CharacteristicIdentifiers.
Declaration
Swift
public static func == (lhs: CharacteristicIdentifier, rhs: CharacteristicIdentifier) -> Bool
-
The hash value of the
CBUUID.Declaration
Swift
public var hashValue: Int { get }
View on GitHub
CharacteristicIdentifier Structure Reference