NMNotificationController Class Reference
| Inherits from | UIViewController |
| Conforms to | UIWebViewDelegate |
| Declared in | NMNotificationController.h NMNotificationController.m |
Overview
NMNotificationController class is the base class for rich push and pop up notification controllers. It handles low level management of notification controllers. Also there is a sample implementation of this superclass in NMRichPushViewController class. You can implement your custom controller for presenting notifications by subclassing NMNotificationController class.
Tasks
-
pushObjectThe object, which stores the rich push content.
property -
webViewThe webview, which displays the rich push content.
property -
shouldInsertJSThe boolean value which shows whether the script that tracks the rich push action events should be added into the webview or not.
property -
– requestUpdateWithRichPushObject:This method asks for user’s permission to update current rich push view with the newly-receiving rich push object when NMRichPushViewController is visible. If user approves, new rich push is shown to user.
-
– updateWithRichPushObject:Updates webview content with the newly-receiving rich push object when NMRichPushViewController is visible.
Properties
pushObject
The object, which stores the rich push content.
@property (nonatomic, strong) NMPushObject *pushObjectDiscussion
The object, which stores the rich push content.
Declared In
NMNotificationController.hshouldInsertJS
The boolean value which shows whether the script that tracks the rich push action events should be added into the webview or not.
@property (nonatomic, assign) BOOL shouldInsertJSDiscussion
The boolean value which shows whether the script that tracks the rich push action events should be added into the webview or not.
Declared In
NMNotificationController.hInstance Methods
requestUpdateWithRichPushObject:
This method asks for user’s permission to update current rich push view with the newly-receiving rich push object when NMRichPushViewController is visible. If user approves, new rich push is shown to user.
- (void)requestUpdateWithRichPushObject:(NMRichPushObject *)richObjectParameters
- richObject
Newly receiving rich push object.
Discussion
This method asks for user’s permission to update current rich push view with the newly-receiving rich push object when NMRichPushViewController is visible. If user approves, new rich push is shown to user.
Declared In
NMNotificationController.hupdateWithRichPushObject:
Updates webview content with the newly-receiving rich push object when NMRichPushViewController is visible.
- (void)updateWithRichPushObject:(NMRichPushObject *)richObjectParameters
- richObject
Newly receiving rich push object.
Discussion
Updates webview content with the newly-receiving rich push object when NMRichPushViewController is visible.
Declared In
NMNotificationController.h