CNUserNotificationCenterDelegate Protocol Reference
Conforms to | NSUserNotificationCenterDelegate |
Declared in | CNUserNotificationCenterDelegate.h |
Tasks
-
– userNotificationCenter:shouldPresentNotification:
Sent to the delegate when the user notification center has decided not to present your notification.
-
– userNotificationCenter:didActivateNotification:
Sent to the delegate when a user clicks on a user notification presented by the user notification center.
-
– userNotificationCenter:didDeliverNotification:
Sent to the delegate when a notification delivery date has arrived.
Instance Methods
userNotificationCenter:didActivateNotification:
Sent to the delegate when a user clicks on a user notification presented by the user notification center.
- (void)userNotificationCenter:(CNUserNotificationCenter *)center didActivateNotification:(CNUserNotification *)notification
Parameters
- center
The user notification center.
- notification
The user notification object.
Declared In
CNUserNotificationCenterDelegate.h
userNotificationCenter:didDeliverNotification:
Sent to the delegate when a notification delivery date has arrived.
- (void)userNotificationCenter:(CNUserNotificationCenter *)center didDeliverNotification:(CNUserNotification *)notification
Parameters
- center
The user notification center.
- notification
The user notification object.
This method is always called, regardless of your application state and even if you deliver the user notification yourself using deliverNotification:.
This delegate method is invoked before the userNotificationCenter:shouldPresentNotification: delegate method.
Declared In
CNUserNotificationCenterDelegate.h
userNotificationCenter:shouldPresentNotification:
Sent to the delegate when the user notification center has decided not to present your notification.
- (BOOL)userNotificationCenter:(CNUserNotificationCenter *)center shouldPresentNotification:(CNUserNotification *)notification
Parameters
- center
The user notification center.
- notification
The user notification object.
Return Value
YES if the user notification should be displayed regardless; NO otherwise.
Declared In
CNUserNotificationCenterDelegate.h