android-components / mozilla.components.feature.prompts / PromptFeature

PromptFeature

class PromptFeature (source)

Feature for displaying native dialogs for html elements like: input type date,file,time,color, option, menu, authentication, confirmation and other alerts.

This feature will subscribe to the currently selected Session and display a suitable native dialog based on Session.Observer.onPromptRequested events. Once the dialog is closed or the user selects an item from the dialog the related PromptFeature will be consumed.

Constructors

<init>

PromptFeature(sessionManager: SessionManager, fragmentManager: FragmentManager)

Feature for displaying native dialogs for html elements like: input type date,file,time,color, option, menu, authentication, confirmation and other alerts.

Functions

start

fun start(): Unit

Start observing the selected session and when needed show native dialogs.

stop

fun stop(): Unit

Stop observing the selected session incoming onPromptRequested events.