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

    offers

    An 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

    name

    The name of the content page.

  • Handles notification that doesn’t have a target NotificationType

    Note

    This doesn’t have a default implementation

    Declaration

    Swift

    open func handleNotificationWithoutType(completionHandler: @escaping () -> Void)
  • Handles notification with target NotificationType and id

    Declaration

    Swift

    open 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

    The default implementation of this method is calling respective method within self depending on notificationType

    Declaration

    Swift

    open 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