BrazeActivityLifecycleCallbackListener

fun BrazeActivityLifecycleCallbackListener(inAppMessagingRegistrationBlocklist: Set<Class<*>?>?, sessionHandlingBlocklist: Set<Class<*>?>? = emptySet<Class<*>>())

Constructor that sets a blocklist for session handling and BrazeInAppMessageManager registration while also enabling both features.

Parameters

inAppMessagingRegistrationBlocklist

A set of Activitys for which in-app message registration will not occur. Each class should be retrieved via Activity.getClass.

sessionHandlingBlocklist

A set of Activitys for which session handling will not occur. Each class should be retrieved via Activity.getClass.


fun BrazeActivityLifecycleCallbackListener(sessionHandlingEnabled: Boolean = true, registerInAppMessageManager: Boolean = true, inAppMessagingRegistrationBlocklist: Set<Class<*>?>? = emptySet<Class<*>>(), sessionHandlingBlocklist: Set<Class<*>?>? = emptySet<Class<*>>())

Parameters

sessionHandlingEnabled

When true, handles calling openSession and closeSession in onActivityStarted and onActivityStopped respectively.

registerInAppMessageManager
inAppMessagingRegistrationBlocklist

A set of Activitys for which in-app message registration will not occur. Each class should be retrieved via Activity.getClass. If null, an empty set is used instead.

sessionHandlingBlocklist

A set of Activitys for which session handling will not occur. Each class should be retrieved via Activity.getClass. If null, an empty set is used instead.