application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)
Called when your app has been activated by the user selecting an action from a local notification.
Declaration
optional func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, for notification: UILocalNotification, withResponseInfo responseInfo: [AnyHashable : Any], completionHandler: @escaping () -> Void)optional func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, for notification: UILocalNotification, withResponseInfo responseInfo: [AnyHashable : Any]) asyncParameters
- application:
The app object that was activated for the user-selected action.
- identifier:
The identifier for the custom action.
- notification:
The local notification object that was triggered.
- responseInfo:
The data dictionary sent by the action.
- completionHandler:
A block that you must call when you are finished performing the action.
Discussion
A nil value in the identifier parameter indicates the default action.
Call the completion handler as soon as you’ve finished handling the action.
See Also
Deprecated
application(_:didRegister:)application(_:didReceive:)application(_:didReceiveRemoteNotification:)application(_:handleActionWithIdentifier:for:completionHandler:)application(_:handleActionWithIdentifier:forRemoteNotification:completionHandler:)application(_:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:)application(_:handleOpen:)application(_:open:sourceApplication:annotation:)application(_:willChangeStatusBarOrientation:duration:)application(_:didChangeStatusBarOrientation:)application(_:willChangeStatusBarFrame:)application(_:didChangeStatusBarFrame:)application(_:handle:completionHandler:)application(_:performFetchWithCompletionHandler:)application(_:shouldSaveApplicationState:)