InAppNotificationsCoordinator

@available(iOS 12.0, *)
@objc(BDKInAppNotificationsCoordinator)
public protocol InAppNotificationsCoordinator

Represents the central coordination point for in-app notifications.

When this service is started whenever a chat message is received or a new file has been uploaded during a call an in-app notification will be presented to the user.

  • The InAppChatNotificationTouchListener that is going to be called whenever a chat notification is touched by the user. If you don’t provide an InAppChatNotificationTouchListener, any notification touched will be dismissed right away and no further action will be performed

    Declaration

    Swift

    @objc
    var chatListener: InAppChatNotificationTouchListener? { get set }
  • The InAppFileShareNotificationTouchListener that is going to be called whenever a file notification is touched by the user. If you don’t provide an InAppFileShareNotificationTouchListener, any notification touched will be dismissed right away and no further action will be performed.

    Declaration

    Swift

    @objc
    var fileShareListener: InAppFileShareNotificationTouchListener? { get set }
  • The formatter instance the SDK will use to format the user details when an in-app notification is presented to the user. If you want to change the way user details are presented to the user, you should set your formatter instance to this property. If you don’t set a custom formatter, a default one will be used instead.

    Declaration

    Swift

    @objc
    var formatter: Formatter? { get set }
  • The Theme instance used by the In app notification view when it has to render on screen the UI components. You can provide your own if you want to customize the UI components.

    Declaration

    Swift

    @objc
    var theme: Theme? { get set }
  • Starts the in-app notifications services.

    From this moment on whenever a chat message or a new file is received an in-app notification will be presented to the user.

    Declaration

    Swift

    @objc
    func start()
  • Stops the in-app notifications services.

    Declaration

    Swift

    @objc
    func stop()