Stay organized with collections
Save and categorize content based on your preferences.
interface Transformation
Helper class used to change a child view of a presentation
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.
Summary
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Transformation\n\nAdded in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTransformation\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/autofill/Transformation \"View this page in Java\") \n\n```\ninterface Transformation\n```\n\n|----------------------------------------------|\n| [android.service.autofill.Transformation](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [CharSequenceTransformation](/reference/kotlin/android/service/autofill/CharSequenceTransformation), [DateTransformation](/reference/kotlin/android/service/autofill/DateTransformation), [ImageTransformation](/reference/kotlin/android/service/autofill/ImageTransformation) |-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [CharSequenceTransformation](/reference/kotlin/android/service/autofill/CharSequenceTransformation) | Replaces a [TextView](../../widget/TextView.html#) child of a [CustomDescription](/reference/kotlin/android/service/autofill/CustomDescription) with the contents of one or more regular expressions (regexs). | | [DateTransformation](/reference/kotlin/android/service/autofill/DateTransformation) | Replaces a [TextView](../../widget/TextView.html#) child of a [CustomDescription](/reference/kotlin/android/service/autofill/CustomDescription) with the contents of a field that is expected to have a [date value](../../view/autofill/AutofillValue.html#forDate(kotlin.Long)). | | [ImageTransformation](/reference/kotlin/android/service/autofill/ImageTransformation) | Replaces the content of a child [ImageView](../../widget/ImageView.html#) of a [presentation template](../../widget/RemoteViews.html#) with the first image that matches a regular expression (regex). | |\n\nHelper class used to change a child view of a [presentation](../../widget/RemoteViews.html#) at runtime, using the values of fields contained in the screen.\n\nTypically used by [CustomDescription](/reference/kotlin/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 implementations provided by the Android System can be used in other Autofill APIs.\n\nSummary\n-------"]]