Instance Method

manageUsersWithCompletionHandler:

Presents a view controller to manage users of the home.

Declaration

- (void)manageUsersWithCompletionHandler:(void (^)(NSError *error))completion;

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 HMErrorCodeInsufficientPrivileges.

See Also

Managing Users

currentUser

The current HomeKit user.

HMUser

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