NMRichPushObject Class Reference
| Inherits from | NMPushObject : NSObject |
| Declared in | NMRichPushObject.h NMRichPushObject.m |
Tasks
-
htmlBodyHTML string that will be shown as rich push message content if any.
property -
urlStringURL string that will bw shown as rich push content if any.
property -
shouldShownInInboxBoolean value which indicates that the receiving rich push should be placed in Inbox
property -
– handleEventURL:This method handles urls in the rich push content, and check whether related action contains a custom event. If yes, it sends related event data to server.
-
– presentInWebView:This method can be used if you want to show rich push content in a webview that you create. Method takes a web view, and loads content of the popup notification to web view. Using this method, you can show your popups in views with any way you want.
Properties
htmlBody
HTML string that will be shown as rich push message content if any.
@property (nonatomic, strong) NSString *htmlBodyDiscussion
HTML string that will be shown as rich push message content if any.
Declared In
NMRichPushObject.hInstance Methods
handleEventURL:
This method handles urls in the rich push content, and check whether related action contains a custom event. If yes, it sends related event data to server.
- (BOOL)handleEventURL:(NSURL *)urlParameters
- url
URL which is triggered in the rich push content.
Return Value
BOOL returns YES if url contains a custom event. You should return NO to webView:shouldStartLoadWithRequest:navigationType: delegate method if this method returns YES.
Discussion
This method handles urls in the rich push content, and check whether related action contains a custom event. If yes, it sends related event data to server.
Declared In
NMRichPushObject.hpresentInWebView:
This method can be used if you want to show rich push content in a webview that you create. Method takes a web view, and loads content of the popup notification to web view. Using this method, you can show your popups in views with any way you want.
- (void)presentInWebView:(UIWebView *)webViewParameters
- webView
UIWebView object which will show popup.
Discussion
This method can be used if you want to show rich push content in a webview that you create. Method takes a web view, and loads content of the popup notification to web view. Using this method, you can show your popups in views with any way you want.
This method sets itself to given webview’s delegate. However, it does NOT interrupt your delegate logic. All webview delegate methods that you implement will be called.
NOTE: You should set your delegate object to webview before calling this method!
Declared In
NMRichPushObject.h