Protocols

The following protocols are available globally.

Action sources

  • Represents an action source. Can be used to get more information about the context of the action, such as the full push payload, if coming from a push.

    Declaration

    Objective-C

    @protocol BatchUserActionSource
  • BatchDeeplinkDelegate is the protocol to adopt when you want to set a deeplink delegate on the SDK.

    See Batch.deeplinkDelegate for more info.

    See more

    Declaration

    Objective-C

    @protocol BatchDeeplinkDelegate
  • Protocol to access data associated with a dispatched event.

    See more

    Declaration

    Objective-C

    @protocol BatchEventDispatcherPayload
  • Represents a dispatcher that can be registered to receive events.

    See more

    Declaration

    Objective-C

    @protocol BatchEventDispatcherDelegate
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol BatchLoggerDelegate <NSObject>
    
    - (void)logWithMessage:(nonnull NSString*)message;
    
    @end
  • Implement this protocol if you want to be notified of what happens to the messaging view (for example, perform some analytics on show/hide).

    See more

    Declaration

    Objective-C

    @protocol BatchMessagingDelegate
  • Represents an In-App Message content This protocol itself isn’t really useful: you will need to safely cast it to an instance, such as BatchInterstitialMessageContent or BatchAlertMessageContent

    Declaration

    Objective-C

    @protocol BatchInAppMessageContent
  • Protocol representing a Batch Messaging VC.

    See more

    Declaration

    Objective-C

    @protocol BatchMessagingViewController