Instance Method

manageUsers(completionHandler:)

Presents a view controller to manage users of the home.

Declaration

func manageUsers(completionHandler completion: @escaping (Error?) -> Void)

Parameters

completion

The block executed after the request is processed.

error

nil on 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.

See Also

Managing Users

var currentUser: HMUser

The current HomeKit user.

class HMUser

A person in the home who may have access to control accessories and services in the home.