InAppMessageBackEventHandler

open class InAppMessageBackEventHandler(activity: Activity, inAppMessageView: IInAppMessageBackEventListener?)

InAppMessageBackEventHandler handles back events by creating a back animation callback. Requires API 34+.

Animations are supported for gesture navigation modes on API 34+ and for 3-button navigation modes on API 36+.

See also BackEvent and OnBackAnimationCallback

Constructors

Link copied to clipboard
constructor(activity: Activity, inAppMessageView: IInAppMessageBackEventListener?)

Functions

Link copied to clipboard
open fun unregister()

Unregisters the back animation callback from the activity's dispatcher. Must be called when the in-app message is closed so the callback does not remain registered.