Instance Method

removeHome:completionHandler:

Removes a home from this home manager.

Declaration

- (void)removeHome:(HMHome *)home completionHandler:(void (^)(NSError *error))completion;

Parameters

home

The home to remove.

completion

The block executed after the request is processed.

error

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

Discussion

This method returns an error if the specified home is not managed by the home manager.

See Also

Adding and Removing Homes

- addHomeWithName:completionHandler:

Adds a new home to this home manager.