Instance Method

removeService(_:completionHandler:)

Removes a service from the service group.

Declaration

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

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

var name: String

The name of the service group.

var uniqueIdentifier: UUID

The unique identifier for the service group.

var services: [HMService]

Array of the services in the service group.