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

pushObject

The object, which stores the rich push content.

@property (nonatomic, strong) NMPushObject *pushObject

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

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 *)richObject

Parameters

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

updateWithRichPushObject:

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

- (void)updateWithRichPushObject:(NMRichPushObject *)richObject

Parameters

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