KGAlertNotification Protocol Reference
| Conforms to | NSObject |
| Declared in | KGAlertNotification.h |
Overview
KGAlertNotification provides APIs to construct JSON alert payload to be sent to the Apple Push Notification Service(APNS) from an application. The application developers can use this class to create notifications that cater to their specific needs.
Tasks
-
– actionKeyReturns the resource-bundle key for the action button in the alert notification. Returns nil if the key is not set. If the resource-bundle key is not set, the action button is rendered with “View” label.
required method -
– setActionKey:Sets the resource-bundle key for the action button in the alert notification.
required method -
– launchImageReturns the image file name that will be used as part of the alert notification. Returns nil if the image file name is not specified.
required method -
– setLaunchImage:Sets the image file name to be used as part of the alert notification.
required method -
– toJSONReturns JSON formatted payload for the alert notification to be sent to the APNS service.
required method
Instance Methods
actionKey
Returns the resource-bundle key for the action button in the alert notification. Returns nil if the key is not set. If the resource-bundle key is not set, the action button is rendered with “View” label.
- (NSString *)actionKeyReturn Value
NSString representing the resource-bundle key for the action button
Declared In
KGAlertNotification.hlaunchImage
Returns the image file name that will be used as part of the alert notification. Returns nil if the image file name is not specified.
- (NSString *)launchImageReturn Value
NSString representing the image file name
Declared In
KGAlertNotification.hsetActionKey:
Sets the resource-bundle key for the action button in the alert notification.
- (void)setActionKey:(NSString *)actionKeyParameters
- actionKey
NSString representing the resource-bundle key for the action button
Declared In
KGAlertNotification.h