Class GeckoSession.PromptDelegate.ColorPrompt

Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.ColorPrompt
Enclosing interface:
GeckoSession.PromptDelegate

public static class GeckoSession.PromptDelegate.ColorPrompt extends GeckoSession.PromptDelegate.BasePrompt
ColorPrompt contains the information necessary to represent a prompt for color input generated by content.
  • Field Details

    • defaultValue

      @Nullable public final String defaultValue
      The default value supplied by content.
    • predefinedValues

      @Nullable public final String[] predefinedValues
      The predefined values by <datalist> element
  • Constructor Details

    • ColorPrompt

      protected ColorPrompt(@NonNull String id, @Nullable String title, @Nullable String defaultValue, @Nullable String[] predefinedValues, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
      Constructs a ColorPrompt for color input generated by content.
      Parameters:
      id - the unique identifier for this prompt
      title - the title text for the prompt; may be null
      defaultValue - the default color value supplied by content; may be null
      predefinedValues - the array of predefined colors from <datalist> may be null
      observer - the observer to notify when the prompt is completed
  • Method Details