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
  •   customParams

    Dictionary which contains custom parameters, which are sent with rich push message content.

    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
  •   pushInboxStatus

    Status of the rich push according to functions to perform.

    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.

Properties

customParams

Dictionary which contains custom parameters, which are sent with rich push message content.

@property (nonatomic, strong) NSMutableDictionary *customParams

Discussion

Dictionary which contains custom parameters, which are sent with rich push message content.

Declared In

NMRichPushObject.h

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

pushInboxStatus

Status of the rich push according to functions to perform.

@property (nonatomic, assign) NMPushInboxStatus pushInboxStatus

Discussion

Status of the rich push according to functions to perform.

Warning: enum PushStatus options.

PushStatusRead, it shows that the rich push is read.

PushStatusUnread, it shows that the rich push is unread.

PushStatusDeleted, it shows that the rich push is deleted.

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