init(queue:)
Creates a push registry with the specified dispatch queue.
Declaration
init(queue: dispatch_queue_t?)Parameters
- queue:
The dispatch queue on which to execute the delegate methods. It is recommended that you specify a serial queue for this parameter. Specify
nilto execute the delegate methods on the app’s main queue.
Return Value
A PKPushRegistry object that you can use to register for push tokens and use to receive notifications.