Service

@available(swift 4.0)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
open class Service
extension Service: Encodable
extension Service: Hashable
extension Service: Equatable

Bluetooth Service base Class

  • Name of the Service

    Declaration

    Swift

    open internal(set) var name: String { get }
  • Service UUID String

    Declaration

    Swift

    open internal(set) var uuidString: String { get }
  • Uniform Type Identifier

    Declaration

    Swift

    open private(set) var uniformIdentifier: String { get }
  • Creates a Bluetooth Service

    Declaration

    Swift

    public init(name: String, uuidString: String, uniformIdentifier: String)

    Parameters

    name

    Service Name

    uuidString

    UUID String

    uniformIdentifier

    Uniform Type Information

HomeKit Accessory Protocol Services

Non Bluetooth SIG Services

Supported Bluetooth SIG Services