onInAppMessageButtonClicked

Return

boolean flag to indicate to Braze whether the click has been manually handled. If true, Braze will only log a click and do nothing else. If false, Braze will log a click and also close the in-app message automatically.

Parameters

inAppMessage

The clicked in-app message.

button

The clicked message button.


open fun onInAppMessageButtonClicked(inAppMessage: IInAppMessage, button: MessageButton, inAppMessageCloser: InAppMessageCloser?): Boolean

Deprecated

InAppMessageCloser is deprecated

Replace with

onInAppMessageButtonClicked(inAppMessage, button)

Return

boolean flag to indicate to Braze whether the click has been manually handled. If true, Braze will only log a click and do nothing else. If false, Braze will log a click and also close the in-app message automatically.

Parameters

inAppMessage

The clicked in-app message.

button

The clicked message button.

inAppMessageCloser

Closing should not be animated if transitioning to a new activity. If remaining in the same activity, closing should be animated.