Instance Method

updateName:completionHandler:

Updates the name of the home.

Declaration

- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;

Parameters

name

The new name. Must not already exist in the home.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

See Also

Identifying a Home

name

The name the user gives to the home.

uniqueIdentifier

A unique identifier for the home.

primary

A Boolean value that indicates whether this is the primary home for its home manager.