Instance Method

removeServiceGroup:completionHandler:

Removes a service group from the home.

Declaration

- (void)removeServiceGroup:(HMServiceGroup *)group completionHandler:(void (^)(NSError *error))completion;

Parameters

group

The service group to remove.

completion

The block executed after the request is processed.

error

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

See Also

Grouping Services

- servicesWithTypes:

Returns an array of all services provided by accessories in the home that match the specified types.

serviceGroups

An array of all service groups in the home.

- addServiceGroupWithName:completionHandler:

Adds a service group to the home.

HMServiceGroup

A collection of accessory services.