MemberIdentifier

@available(swift 4.0)
open class MemberIdentifier : Encodable
extension MemberIdentifier: Hashable
extension MemberIdentifier: Equatable

BLE 16 Bit UUIDs For Members

Provides the Members UUID 16 Assigned Numbers

  • Members Assigned UUID 16 Number

    Declaration

    Swift

    open internal(set) var assignedNumber: UInt16 { get }
  • Company Name

    Declaration

    Swift

    open internal(set) var name: String { get }
  • Creates Bluetooth 16 Bit UUIDs For Members

    Declaration

    Swift

    public init(assignedNumber: UInt16, name: String)

    Parameters

    assignedNumber

    Assigned UUID

    name

    Assigned Company Name

  • Hashes the essential components of this value by feeding them into the given hasher.

    Implement this method to conform to the Hashable protocol. The components used for hashing must be the same as the components compared in your type’s == operator implementation. Call hasher.combine(_:) with each of these components.

    Important

    Never call finalize() on hasher. Doing so may become a compile-time error in the future.

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)

    Parameters

    hasher

    The hasher to use when combining the components of this instance.

  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    public static func == (lhs: MemberIdentifier, rhs: MemberIdentifier) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Finds a MemberIdentifier by the ID

    Declaration

    Swift

    class func company(assignedNumber: UInt16) -> MemberIdentifier?

    Parameters

    assignedNumber

    16 Bit UUID For Member

    Return Value

    MemberIdentifier Instance

Supported

  • Array of all Supported MemberIdentifier values

    Declaration

    Swift

    static var supportedMemberIdentifers: [MemberIdentifier]