Contents

removeServiceGroup(_:completionHandler:)

Removes a service group from the home.

Declaration

func removeServiceGroup(_ group: HMServiceGroup, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func removeServiceGroup(_ group: HMServiceGroup) async throws

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