updatePrimaryHome(_:completionHandler:)
Updates the primary home of this home manager.
Declaration
func updatePrimaryHome(_ home: HMHome, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func updatePrimaryHome(_ home: HMHome) async throwsParameters
- home:
The new primary home. Must be a home managed by this home manager.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.