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

Properties

richPush

The object, which stores the rich push content.

@property (nonatomic, strong) NMRichPushObject *richPush

Discussion

The object, which stores the rich push content.

Declared In

NMNotificationController.h

shouldInsertJS

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 shouldInsertJS

Discussion

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

webView

The webview, which displays the rich push content.

@property (nonatomic, strong) UIWebView *webView

Discussion

The webview, which displays the rich push content.

Declared In

NMNotificationController.h

Instance Methods

initWithRichPushObject:

Initialization of the NMRichPushViewController with a rich push object that includes necessary information to display rich push notification.

- (id)initWithRichPushObject:(NMRichPushObject *)obj

Discussion

Initialization of the NMRichPushViewController with a rich push object that includes necessary information to display rich push notification.

Declared In

NMNotificationController.h

updateWithRichPushObject:

Updates webview content with the newly-receiving rich push object when NMRichPushViewController is visible.

- (void)updateWithRichPushObject:(NMRichPushObject *)newObject

Parameters

newObject

Newly-receiving rich push object.

Discussion

Updates webview content with the newly-receiving rich push object when NMRichPushViewController is visible.

Declared In

NMNotificationController.h