ThomasListenerInterface

Functions

Link copied to clipboard
abstract fun onButtonTap(buttonId: String, reportingMetadata: JsonValue?, state: LayoutData)

Called when a button is tapped.

Link copied to clipboard
abstract fun onDismiss(displayTime: Long)

Called when the view is dismissed from outside the view.

abstract fun onDismiss(buttonId: String, buttonDescription: String?, cancel: Boolean, displayTime: Long, state: LayoutData)

Called when the view is dismissed from a button.

Link copied to clipboard
abstract fun onFormDisplay(formInfo: FormInfo, state: LayoutData)

Called when a form is displayed.

Link copied to clipboard
abstract fun onFormResult(formData: FormData.BaseForm, state: LayoutData)

Called when a form is submitted.

Link copied to clipboard
abstract fun onPagerAutomatedAction(actionId: String, reportingMetadata: JsonValue?, state: LayoutData)

Called when a pager changes its page due to a swipe.

Link copied to clipboard
abstract fun onPagerGesture(gestureId: String, reportingMetadata: JsonValue?, state: LayoutData)

Called when a pager changes its page due to a tap.

Link copied to clipboard
abstract fun onPageSwipe(pagerData: PagerData, toPageIndex: Int, toPageId: String, fromPageIndex: Int, fromPageId: String, state: LayoutData)

Called when a pager changes its page due to a swipe gesture.

Link copied to clipboard
abstract fun onPageView(pagerData: PagerData, state: LayoutData, displayedAt: Long)

Called when a pager changes its page.

Link copied to clipboard
abstract fun onTimedOut(state: LayoutData?)

Called when a view is dismissed because it timed out.

Link copied to clipboard
abstract fun onVisibilityChanged(isVisible: Boolean, isForegrounded: Boolean)

Called whenever the view visibility changes