manageUsers(completionHandler:)
Presents a view controller to manage users of the home.
Declaration
func manageUsers(completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func manageUsers() async throwsParameters
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.
Discussion
Only users that have administrator access to the home can call this method. Otherwise, the completion handler returns the error HMError.Code.insufficientPrivileges.