Instance Method

removeUser(_:completionHandler:)

Removes a user from the home.

Declaration

func removeUser(_ user: HMUser, completionHandler completion: @escaping (Error?) -> Void)

Parameters

user

The user to remove.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure. error.userInfo[HMUserFailedAccessoriesKey] contains more information in case of failure. See HMUserFailedAccessoriesKey for more details.

See Also

Deprecated Symbols

var users: [HMUser]

All users associated with the home.

Deprecated