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
Modifier and TypeClassDescriptionstatic @interface
static class
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
A String representing the default value supplied by content.final String
A String representing the maximum value allowed by content.final String
A String representing the minimum value allowed by content.final String
A String representing the step value allowed by content.final int
One ofGeckoSession.PromptDelegate.DateTimePrompt.Type
indicating 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.Type
indicating 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.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-