PushHandler
public protocol PushHandler
Handler of Basic (non-rich) Push Notifications
-
Handles client events with the specified array of offers.
Declaration
Swift
func handleClientEvents(_ offers: [Any], completionHandler: @escaping () -> Void)
Parameters
offers
An array of objects as offers.
-
Handles the content page with a specified name.
Declaration
Swift
func handleContentPageWithName(_ name: String, completionHandler: @escaping () -> Void)
Parameters
name
The name of the content page.
-
Handles notification that doesn’t have a target
NotificationType
Declaration
Swift
func handleNotificationWithoutType(completionHandler: @escaping () -> Void)
-
Handles notification with target
NotificationType
andid
Declaration
Swift
func handleObjectWithId(_ id: Int, notificationType: NotificationType, userInfo: [String: Any], completionHandler: @escaping () -> Void)
Parameters
id
Object ID
notificationType
userInfo
The whole push notification payload
-
Handles push notification
Declaration
Swift
func handlePush(notificationType: NotificationType, userInfo: [String: Any], completionHandler: @escaping () -> Void)
Parameters
notificationType
userInfo
The whole push notification payload
completionHandler
Completion block that should always be called