Instance Method

addHomeWithName:completionHandler:

Adds a new home to this home manager.

Declaration

- (void)addHomeWithName:(NSString *)homeName completionHandler:(void (^)(HMHome *home, NSError *error))completion;

Parameters

homeName

The name of the new home. Must not match the name of an existing home.

completion

The block executed after the request is processed.

home

The newly created home; may be nil if creation failed.

error

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

See Also

Adding and Removing Homes

- removeHome:completionHandler:

Removes a home from this home manager.