removeHome(_:completionHandler:)
Removes a home from this home manager.
Declaration
func removeHome(_ home: HMHome, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func removeHome(_ home: HMHome) async throwsParameters
- home:
The home to remove.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.
Discussion
This method returns an error if the specified home is not managed by the home manager.