unregister(completionHandler:)
Unregisters the service so the system no longer launches it and calls a completion handler you provide with the resulting error value.
Declaration
func unregister(completionHandler handler: @escaping @Sendable ((any Error)?) -> Void)func unregister() async throwsParameters
- handler:
A completion handler to call with the result of the unregistration operation. Upon an unsuccessful return, the handler contains a new Nserror object describing the error. Upon successful return, this argument is
NULL.