ServiceHapStatelessProgrammableSwitch
@available(swift 4.0)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
open class ServiceHapStatelessProgrammableSwitch : Service
HAP-BLE HomeKit Stateless Programmable Switch Service
This service describes a stateless programmable switch.
The following rules apply to a stateless programmable switch accessory:
- Each physical switch on the accessory must be represented by a unique instance of this service.
- If there are multiple instances of this service on the accessory, they must be linked to a Service Label.
- If there are multiple instances of this service on the accessory, Service Label Index is a required characteristic.
- Service Label Index value for each instance of this service linked to the same Service Label must be unique.
- The User visible label on the physical accessory should match the Service Label Namespace described by the accessory
- If there is only one instance of this service on the accessory, Service Label is not required and consequently Service Label Index must not be present
-
Service Name
Declaration
Swift
public static var name: String { get }
-
Service UUID
Declaration
Swift
public static var uuidString: String { get }
-
Service Uniform Identifier
Declaration
Swift
public static var uniformIdentifier: String { get }
-
Creates Service
Declaration
Swift
public init()