Stay organized with collections
Save and categorize content based on your preferences.
public
interface
Transformation
android.service.autofill.Transformation
|
Known indirect subclasses
|
Helper class used to change a child view of a presentation
template
at runtime, using the values of fields contained in the screen.
Typically used by CustomDescription
to provide a customized autofill save UI.
Note: This interface is not meant to be implemented by app developers; only
implementations provided by the Android System can be used in other Autofill APIs.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Transformation\n\nAdded in [API level 27](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: \n\nTransformation\n==============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/service/autofill/Transformation \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nTransformation\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.service.autofill.Transformation |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [CharSequenceTransformation](/reference/android/service/autofill/CharSequenceTransformation), [DateTransformation](/reference/android/service/autofill/DateTransformation), [ImageTransformation](/reference/android/service/autofill/ImageTransformation) |----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [CharSequenceTransformation](/reference/android/service/autofill/CharSequenceTransformation) | Replaces a [TextView](/reference/android/widget/TextView) child of a [CustomDescription](/reference/android/service/autofill/CustomDescription) with the contents of one or more regular expressions (regexs). | | [DateTransformation](/reference/android/service/autofill/DateTransformation) | Replaces a [TextView](/reference/android/widget/TextView) child of a [CustomDescription](/reference/android/service/autofill/CustomDescription) with the contents of a field that is expected to have a [date value](/reference/android/view/autofill/AutofillValue#forDate(long)). | | [ImageTransformation](/reference/android/service/autofill/ImageTransformation) | Replaces the content of a child [ImageView](/reference/android/widget/ImageView) of a [presentation template](/reference/android/widget/RemoteViews) with the first image that matches a regular expression (regex). | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nHelper class used to change a child view of a [presentation\ntemplate](/reference/android/widget/RemoteViews) at runtime, using the values of fields contained in the screen.\n\nTypically used by [CustomDescription](/reference/android/service/autofill/CustomDescription) to provide a customized autofill save UI.\n\n**Note:** This interface is not meant to be implemented by app developers; only\nimplementations provided by the Android System can be used in other Autofill APIs."]]