Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.DateTimePrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.DateTimePrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.DateTimePrompt
extends GeckoSession.PromptDelegate.BasePrompt
DateTimePrompt contains the information necessary to represent a prompt for date and/or time
input generated by content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDatetime type definitions for date/time prompts.static classPrompt for date/time input types.Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringA String representing the default value supplied by content.final StringA String representing the maximum value allowed by content.final StringA String representing the minimum value allowed by content.final StringA String representing the step value allowed by content.final intOne ofGeckoSession.PromptDelegate.DateTimePrompt.Typeindicating the type of prompt.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title -
Method Summary
Modifier and TypeMethodDescriptionConfirms the prompt and passes the date and/or time value back to content.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
type
public final int typeOne ofGeckoSession.PromptDelegate.DateTimePrompt.Typeindicating the type of prompt. -
defaultValue
A String representing the default value supplied by content. -
minValue
A String representing the minimum value allowed by content. -
maxValue
A String representing the maximum value allowed by content. -
stepValue
A String representing the step value allowed by content.
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String datetime) Confirms the prompt and passes the date and/or time value back to content.- Parameters:
datetime- A String representing the date and time to be returned to content.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponsewhich can be used to complete theGeckoResultassociated with this prompt.
-