DefaultPushHandler
open class DefaultPushHandler : PushHandler
PushHandler with default implementations
-
Undocumented
Declaration
Swift
public init() -
Handles client events with the specified array of offers.
Note
This doesn’t have a default implementation
Declaration
Swift
open func handleClientEvents(_ offers: [Any], completionHandler: @escaping () -> Void)Parameters
offersAn array of objects as offers.
-
Handles the content page with a specified name.
Note
This doesn’t have a default implementation
Declaration
Swift
open func handleContentPageWithName(_ name: String, completionHandler: @escaping () -> Void)Parameters
nameThe name of the content page.
-
Handles notification that doesn’t have a target
NotificationTypeNote
This doesn’t have a default implementationDeclaration
Swift
open func handleNotificationWithoutType(completionHandler: @escaping () -> Void) -
Handles notification with target
NotificationTypeandidDeclaration
Swift
open func handleObjectWithId(_ id: Int, notificationType: NotificationType, userInfo: [String: Any], completionHandler: @escaping () -> Void)Parameters
idObject ID
notificationTypeuserInfoThe whole push notification payload
-
Handles push notification
The default implementation of this method is calling respective method within self depending on
notificationTypeDeclaration
Swift
open 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
DefaultPushHandler Class Reference