@Implements(value=android.view.autofill.AutofillManager.class, minSdk=26) public class ShadowAutofillManager extends Object
AutofillManager
.Constructor | Description |
---|---|
ShadowAutofillManager() |
Modifier and Type | Method | Description |
---|---|---|
protected ComponentName |
getAutofillServiceComponentName() |
Returns the overridden value set by
setAutofillServiceComponentName(ComponentName) . |
protected FillEventHistory |
getFillEventHistory() |
|
protected boolean |
isAutofillSupported() |
Returns the overridden value set by
setAutofillSupported(boolean) . |
protected boolean |
isEnabled() |
Returns the overridden value set by
setEnabled(boolean) . |
void |
setAutofillServiceComponentName(ComponentName componentName) |
Overrides the component name of the autofill service enabled for the current user.
|
void |
setAutofillSupported(boolean supported) |
Overrides the autofill supported state for the current device and current user.
|
void |
setEnabled(boolean enabled) |
Overrides the autofill enabled state for the current user.
|
@Implementation protected FillEventHistory getFillEventHistory()
@Nullable @Implementation(minSdk=28) protected ComponentName getAutofillServiceComponentName()
setAutofillServiceComponentName(ComponentName)
.@Implementation protected boolean isAutofillSupported()
setAutofillSupported(boolean)
.@Implementation protected boolean isEnabled()
setEnabled(boolean)
.public void setAutofillServiceComponentName(@Nullable ComponentName componentName)
AutofillManager.getAutofillServiceComponentName()
.public void setAutofillSupported(boolean supported)
AutofillManager.isAutofillSupported()
.public void setEnabled(boolean enabled)
AutofillManager.isEnabled()
.