stop(with:completionHandler:)
Indicates that the framework needs to stop the provider.
Declaration
func stop(with reason: NEProviderStopReason, completionHandler: @escaping @Sendable () -> Void)func stop(with reason: NEProviderStopReason) asyncParameters
- reason:
An Neproviderstopreason that indicates why the provider needs to stop.
- completionHandler:
A block that your provider subclass calls after it completely stops.
Mentioned in
Discussion
An NEAppPushProvider subclass must override this method to perform any necessary tasks when stopping communication with the server.