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
offersAn array of objects as offers.
-
Handles the content page with a specified name.
Declaration
Swift
func handleContentPageWithName(_ name: String, completionHandler: @escaping () -> Void)Parameters
nameThe name of the content page.
-
Handles notification that doesn’t have a target
NotificationTypeDeclaration
Swift
func handleNotificationWithoutType(completionHandler: @escaping () -> Void) -
Handles notification with target
NotificationTypeandidDeclaration
Swift
func handleObjectWithId(_ id: Int, notificationType: NotificationType, userInfo: [String: Any], completionHandler: @escaping () -> Void)Parameters
idObject ID
notificationTypeuserInfoThe whole push notification payload
-
Handles push notification
Declaration
Swift
func handlePush(notificationType: NotificationType, userInfo: [String: Any], completionHandler: @escaping () -> Void)Parameters
notificationTypeuserInfoThe whole push notification payload
completionHandlerCompletion block that should always be called
View on GitHub
PushHandler Protocol Reference