Interface GeckoSession.PromptDelegate.PromptInstanceDelegate

Enclosing interface:
GeckoSession.PromptDelegate

public static interface GeckoSession.PromptDelegate.PromptInstanceDelegate
  • Method Details

    • onPromptDismiss

      @UiThread default void onPromptDismiss(@NonNull GeckoSession.PromptDelegate.BasePrompt prompt)
      Called when this prompt has been dismissed by the system.

      This can happen e.g. when the page navigates away and the content of the prompt is not relevant anymore.

      When this method is called, you should hide the prompt UI elements.

      Parameters:
      prompt - the prompt that should be dismissed.
    • onPromptUpdate

      @UiThread default void onPromptUpdate(@NonNull GeckoSession.PromptDelegate.BasePrompt prompt)
      Called when this prompt has been updated.

      This is called if inner <option> elements are updated when using <select> element.

      When this method is called, you should update the prompt UI elements.

      Parameters:
      prompt - the new prompt that should be updated.