DiscoveryJsInterface

Handles JavaScript-based events for the discovery flow, delegating to a TMDiscoveryListener.

Parameters

listener

The TMDiscoveryListener to receive discovery events.

mapper

The UALPageViewMapper for mapping analytics data.

Functions

Link copied to clipboard
open override fun appviewAddToCartEvent(json: String)

Logs an event when items are added to a cart.

Link copied to clipboard

Handles a search query entered in the WebView.

Link copied to clipboard

Handles a search suggestion selection in the WebView.

Link copied to clipboard

Requests the current device location from the WebView (no JSON). ADP location JS.

Requests the current device location from the WebView.

Link copied to clipboard
open override fun appviewGetLoginStatus()

Requests the current login status.

Link copied to clipboard

Loads an event details page for a selected event.

Link copied to clipboard
open override fun appviewInitMFA(json: String)

Initializes multi-factor authentication (MFA) with provided JSON data.

Link copied to clipboard

Updates the location from the WebView.

Link copied to clipboard
open override fun appviewLogAction(json: String)

Logs an action performed by the user outside of a page view.

Link copied to clipboard
open override fun appviewLogPageView(json: String)

Logs a page view event.

Link copied to clipboard

Reports an error requiring a dialog or error state.

Link copied to clipboard

Notifies when the search UI appears in the WebView.

Link copied to clipboard

Notifies when the search UI disappears in the WebView.

Link copied to clipboard

Sets the supported URLs for the WebView.

Link copied to clipboard

Sets the toolbar title for the current page.

Link copied to clipboard
open override fun appviewShowSignIn()

Initiates a sign-in process without specific configuration.

open override fun appviewShowSignIn(json: String)

Initiates a sign-in process with provided JSON data.

Link copied to clipboard

Triggers a native sign-in process from the WebView.

Link copied to clipboard
open override fun appviewTmPromotedClick(json: String)

Handles a click on a promoted item in the WebView.

Link copied to clipboard
open override fun appviewTransactionEvent(json: String)

Logs a transaction event.

Link copied to clipboard
open override fun appviewUpdateLogin()

Updates the login state.

Link copied to clipboard
open override fun displayNativeLocationSelector(json: String)

Requests the native location selector from the WebView.

Link copied to clipboard

Sets the UnifiedWebListener for testing purposes.