Contents

removeService(_:completionHandler:)

Removes a service from the service group.

Declaration

func removeService(_ service: HMService, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func removeService(_ service: HMService) async throws

Parameters

  • service:

    The service 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

Managing Service Groups