Inherits from NMPushObject : NSObject
Declared in NMRichPushObject.h
NMRichPushObject.m

Overview

NMRichPushObject class stores related data of a rich push message.

Tasks

  •   htmlBody

    HTML string that will be shown as rich push message content if any.

    property
  •   urlString

    URL string that will bw shown as rich push content if any.

    property
  •   shouldShownInInbox

    Boolean 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 *htmlBody

Discussion

HTML string that will be shown as rich push message content if any.

Declared In

NMRichPushObject.h

shouldShownInInbox

Boolean value which indicates that the receiving rich push should be placed in Inbox

@property (nonatomic, assign) BOOL shouldShownInInbox

Discussion

Boolean value which indicates that the receiving rich push should be placed in Inbox

Declared In

NMRichPushObject.h

urlString

URL string that will bw shown as rich push content if any.

@property (nonatomic, strong) NSString *urlString

Discussion

URL string that will bw shown as rich push content if any.

Declared In

NMRichPushObject.h

Instance 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 *)url

Parameters

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.h

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.

- (void)presentInWebView:(UIWebView *)webView

Parameters

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