removeUser(_:completionHandler:)
Removes a user from the home.
Declaration
func removeUser(_ user: HMUser, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func removeUser(_ user: HMUser) async throwsParameters
- user:
The user to remove.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.error.userInfo[HMUserFailedAccessoriesKey]contains more information in case of failure. See Hmuserfailedaccessorieskey for more details.