enableNotification(_:completionHandler:)
Enables or disables notifications for changes in the value of the characteristic.
Declaration
func enableNotification(_ enable: Bool, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func enableNotification(_ enable: Bool) async throwsParameters
Discussion
HomeKit delivers notifications to the accessory delegate using the accessory(_:service:didUpdateValueFor:) method.