BDKInAppNotificationsCoordinator

Objective-C

@protocol BDKInAppNotificationsCoordinator

Swift

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 anInAppChatNotificationTouchListener, any notification touched will be dismissed right away and no further action will be performed

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) id<BDKInAppChatNotificationTouchListener> chatListener;

    Swift

    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

    Objective-C

    @property (nonatomic, strong, nullable) id<BDKInAppFileShareNotificationTouchListener> fileShareListener;

    Swift

    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

    Objective-C

    @property (nonatomic, strong, nullable) NSFormatter *formatter;

    Swift

    var formatter: Formatter? { get set }
  • The BDKTheme 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

    Objective-C

    @property (nonatomic, strong, nullable) BDKTheme *theme;

    Swift

    var theme: BDKTheme? { 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

    Objective-C

    - (void)start;

    Swift

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

    Declaration

    Objective-C

    - (void)stop;

    Swift

    func stop()