Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.IdentityCredential.PrivacyPolicyPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.IdentityCredential.PrivacyPolicyPrompt
- Enclosing class:
- GeckoSession.PromptDelegate.IdentityCredential
public static class GeckoSession.PromptDelegate.IdentityCredential.PrivacyPolicyPrompt
extends GeckoSession.PromptDelegate.BasePrompt
PrivacyPolicyPrompt contains the information necessary to represent a prompt that allows
the user to indicate if agrees or not with the privacy policy of the identity credential
provider.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe host of the provider.final StringA base64 string for given icon for the provider; may be null.final StringThe URL where the policy for using this provider is hosted.final StringThe domain of the provider.final StringThe URL where the terms of service for using this provider are hosted.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrivacyPolicyPrompt(String id, String privacyPolicyUrl, String termsOfServiceUrl, String providerDomain, String host, String icon, GeckoSession.PromptDelegate.BasePrompt.Observer observer) Creates a newGeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPromptwith the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionconfirm(boolean accept) Confirms the prompt and passes the provider accept value back to content.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
privacyPolicyUrl
The URL where the policy for using this provider is hosted. -
termsOfServiceUrl
The URL where the terms of service for using this provider are hosted. -
providerDomain
The domain of the provider. -
host
The host of the provider. -
icon
A base64 string for given icon for the provider; may be null.
-
-
Constructor Details
-
PrivacyPolicyPrompt
protected PrivacyPolicyPrompt(@NonNull String id, @NonNull String privacyPolicyUrl, @NonNull String termsOfServiceUrl, @NonNull String providerDomain, @NonNull String host, @Nullable String icon, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer) Creates a newGeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPromptwith the given parameters.- Parameters:
id- The identification for this prompt.privacyPolicyUrl- The URL where the policy for using this provider is hosted.termsOfServiceUrl- The URL where the terms of service for using this provider are hosted.providerDomain- The domain of the provider.host- The host of the provider.icon- A base64 string for given icon for the provider; may be null.observer- A callback to notify when the prompt has been completed.
-
-
Method Details
-
confirm
Confirms the prompt and passes the provider accept value back to content.- Parameters:
accept- A boolean indicating if the user accepts or not the Privacy Policy of the provider.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponsewhich can be used to complete theGeckoResultassociated with this prompt.
-