start(completionHandler:)
Indicates that the framework has started the provider, and provides a completion handler for subclasses to signal their readiness.
Declaration
func start(completionHandler: @escaping ((any Error)?) -> Void)Parameters
- completionHandler:
A Swift closure or ObjectiveC block for your provider subclass to call after it begins connecting to the server. If you can’t connect, pass a non-nil
errorthat describes the error, otherwise passnil.
Mentioned in
Discussion
An NEAppPushProvider subclass must override this method to create a connection with its server.