ServiceIdentifier

public struct ServiceIdentifier

A wrapper for CBUUID specific to a service to help distinguish it from a CBUUID of a characteristic.

  • The CBUUID of this service.

    Declaration

    Swift

    public private(set) var uuid: CBUUID
  • Create a ServiceIdentifier using 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 a CBUUID, then there will be a fatal error.

    Declaration

    Swift

    public init(uuid: String)
  • Create a ServiceIdentifier using a CBUUID.

    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 }