addSingleSynchronousSubscription

open override fun <T> addSingleSynchronousSubscription(subscriber: IEventSubscriber<T>, eventClass: Class<T>)

Adds a new subscription for an external Braze SDK event. Note that this subscriber will be called synchronously from the running thread of the Braze SDK and may not be on the same thread as the caller of this method.

Parameters

subscriber

The subscriber callback to fire for the given event class.

eventClass

The subscribed event class.