removeTrigger(_:completionHandler:)
Removes a trigger from the home.
Declaration
func removeTrigger(_ trigger: HMTrigger, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func removeTrigger(_ trigger: HMTrigger) async throwsParameters
- trigger:
The trigger to remove.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.
Discussion
If trigger is enabled, removing it from the home disables it.