AutofillCapabilityChecker

Used to check the status of various Autofill features.

Whether autofill features are enabled depends on a variety of inputs. This class provides a single way to query the status of all of them.

Functions

Link copied to clipboard

Whether a user can access the credential management screen.

Link copied to clipboard
abstract suspend fun canGeneratePasswordFromWebView(url: String): Boolean

Whether autofill can generate a password into a WebView for the given page.

Link copied to clipboard
abstract suspend fun canInjectCredentialsToWebView(url: String): Boolean

Whether autofill can inject credentials into a WebView for the given page.

Link copied to clipboard
abstract suspend fun canSaveCredentialsFromWebView(url: String): Boolean

Whether autofill can save credentials from a WebView for the given page.

Link copied to clipboard
abstract suspend fun isAutofillEnabledByConfiguration(url: String): Boolean

Whether autofill is configured to be enabled. This is a configuration value, not a user preference.