Conforms to NSObject
Declared in LimeConnect.h

Overview

Delegate that can be used to manage notification display. For example, client can store current timestamp whenever a notification is shown and suppress displaying notification in case there is less then 1 day from the previous one.

Instance Methods

lime:didDisplayNotification:

Callback received when a notification was displayed to the user.

- (void)lime:(LimeConnect *)lime didDisplayNotification:(LimeContentRule *)contentRule

Parameters

lime

Back-reference to Lime SDK.

contentRule

A content rule that is responsible for the notification.

Discussion

Callback received when a notification was displayed to the user.

Declared In

LimeConnect.h

lime:didSuppressNotification:

Callback received when a notification was suppressed by the business logic. Client can use this method to influence further calls of lime:shouldDisplayNotiication: method.

- (void)lime:(LimeConnect *)lime didSuppressNotification:(LimeContentRule *)contentRule

Parameters

lime

Back-reference to Lime SDK.

contentRule

A content rule that is responsible for the notification.

Discussion

Callback received when a notification was suppressed by the business logic. Client can use this method to influence further calls of lime:shouldDisplayNotiication: method.

Declared In

LimeConnect.h

lime:shouldDisplayNotification:

Result of this method determines if a notification should be displayed or not. Any business logics can be used to determine the result. If this method is not implemented, notification is displayed whenever server indicates it should be displayed (as of the method always returned YES).

- (BOOL)lime:(LimeConnect *)lime shouldDisplayNotification:(LimeContentRule *)contentRule

Parameters

lime

Back-reference to Lime SDK.

contentRule

A content rule that is responsible for the notification.

Return Value

YES if notification should be displayed, NO otherwise.

Discussion

Result of this method determines if a notification should be displayed or not. Any business logics can be used to determine the result. If this method is not implemented, notification is displayed whenever server indicates it should be displayed (as of the method always returned YES).

Declared In

LimeConnect.h