public static interface GeckoSession.PromptDelegate.ChoiceCallback extends GeckoSession.PromptDelegate.AlertCallback
Modifier and Type | Method and Description |
---|---|
default void |
confirm(GeckoSession.PromptDelegate.Choice item)
Called by the prompt implementation when the menu or single-choice list is
dismissed by the user.
|
default void |
confirm(GeckoSession.PromptDelegate.Choice[] items)
Called by the prompt implementation when the multiple-choice list is
dismissed by the user.
|
default void |
confirm(String id)
Called by the prompt implementation when the menu or single-choice list is
dismissed by the user.
|
default void |
confirm(String[] ids)
Called by the prompt implementation when the multiple-choice list is
dismissed by the user.
|
dismiss, getCheckboxMessage, getCheckboxValue, hasCheckbox, setCheckboxValue
@UiThread default void confirm(@Nullable String id)
id
- ID of the selected item.@UiThread default void confirm(@NonNull String[] ids)
ids
- IDs of the selected items.@UiThread default void confirm(@NonNull GeckoSession.PromptDelegate.Choice item)
item
- Choice representing the selected item; must be an original
Choice object that was passed to the implementation.@UiThread default void confirm(@Nullable GeckoSession.PromptDelegate.Choice[] items)
items
- Choice array representing the selected items; must be original
Choice objects that were passed to the implementation.