DiscoveryJsInterface

class DiscoveryJsInterface : UnifiedJsInterface

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)
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()
Link copied to clipboard

Loads an event details page for a selected event.

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

Updates the location from the WebView.

Link copied to clipboard
open override fun appviewLogAction(json: String)
Link copied to clipboard
open override fun appviewLogPageView(json: String)
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()
open override fun appviewShowSignIn(json: String)
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)
Link copied to clipboard
open override fun appviewUpdateLogin()
Link copied to clipboard
open override fun displayNativeLocationSelector(json: String)

Requests the native location selector from the WebView.

Link copied to clipboard
fun setListener(listener: UnifiedWebListener?)