NMRichPushSenderObject Class Reference
| Inherits from | NMPushSenderObject : NMPushObject : NSObject |
| Declared in | NMRichPushSenderObject.h NMRichPushSenderObject.m |
Overview
NMRichPushSenderObject class is used to send html-formatted content. By using this class, push notifications that contains well-designed html pages can be sent instead of plain text notifications.
Tasks
Other Methods
-
htmlStringString representation of rich push notification HTML. This property is required.
property -
– initWithTitle:alertText:richPushHTML:Initializes the newly allocated NMRichPushSenderObject with the specified title, alert text and rich push HTML values of push notification.
Other Methods
-
– initWithTitle:alertText:Initializes the newly allocated NMPushSenderObject with the specified title and alert text values of push notification.
-
– sendPushNotificationWithCompletionHandler:Sends the push notification asynchronously.
Instance Methods
initWithTitle:alertText:
Initializes the newly allocated NMPushSenderObject with the specified title and alert text values of push notification.
- (id)initWithTitle:(NSString *)title alertText:(NSString *)textParameters
- title
Title of the push notification.
- text
Message of the push notification.
Return Value
An initialized NMPushSenderObject object with given parameters.
Discussion
Initializes the newly allocated NMPushSenderObject with the specified title and alert text values of push notification.
Declared In
NMPushSenderObject.hinitWithTitle:alertText:richPushHTML:
Initializes the newly allocated NMRichPushSenderObject with the specified title, alert text and rich push HTML values of push notification.
- (id)initWithTitle:(NSString *)title alertText:(NSString *)text richPushHTML:(NSString *)htmlTextParameters
- title
Title of the push notification.
- text
Message of the push notification.
- htmlText
String representation of rich push HTML content of the push notification.
Return Value
An initialized NMRichPushSenderObject object with given parameters.
Discussion
Initializes the newly allocated NMRichPushSenderObject with the specified title, alert text and rich push HTML values of push notification.
Declared In
NMRichPushSenderObject.hsendPushNotificationWithCompletionHandler:
Sends the push notification asynchronously.
- (void)sendPushNotificationWithCompletionHandler:(void ( ^ ) ( NSString *, NSError *))handlerParameters
- handler
The block to execute when the sending push notification is completed.
Discussion
Sends the push notification asynchronously.
Declared In
NMPushSenderObject.h