Stay organized with collections
Save and categorize content based on your preferences.
android.view.translation
Interfaces
Classes
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,["# android.view.translation\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/translation/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| [UiTranslationStateCallback](/reference/kotlin/android/view/translation/UiTranslationStateCallback) | Callback for listening to UI Translation state changes. |\n| [ViewTranslationCallback](/reference/kotlin/android/view/translation/ViewTranslationCallback) | Callback for handling the translated information show or hide in the [View](../View.html#). |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TranslationCapability](/reference/kotlin/android/view/translation/TranslationCapability) | Capability class holding information for a pair of [TranslationSpec](/reference/kotlin/android/view/translation/TranslationSpec)s. |\n| [TranslationContext](/reference/kotlin/android/view/translation/TranslationContext) | Info class holding information for [Translator](/reference/kotlin/android/view/translation/Translator)s and used by [TranslationManager.createOnDeviceTranslator(TranslationContext, Executor, Consumer)](/reference/kotlin/android/view/translation/TranslationManager#createOnDeviceTranslator(android.view.translation.TranslationContext,%20java.util.concurrent.Executor,%20java.util.function.Consumer)). |\n| [TranslationManager](/reference/kotlin/android/view/translation/TranslationManager) | The [TranslationManager](/reference/kotlin/android/view/translation/TranslationManager) class provides ways for apps to integrate and use the translation framework. |\n| [TranslationRequest](/reference/kotlin/android/view/translation/TranslationRequest) | Translation request sent to the translation service by the [android.view.translation.Translator](/reference/kotlin/android/view/translation/Translator) which contains the text to be translated. |\n| [TranslationRequestValue](/reference/kotlin/android/view/translation/TranslationRequestValue) | A value to be translated via [android.view.translation.Translator](/reference/kotlin/android/view/translation/Translator). |\n| [TranslationResponse](/reference/kotlin/android/view/translation/TranslationResponse) | Response from the translation service, which contains the translated result. |\n| [TranslationResponseValue](/reference/kotlin/android/view/translation/TranslationResponseValue) | A translated response value from translation service. |\n| [TranslationSpec](/reference/kotlin/android/view/translation/TranslationSpec) | Specs and additional info for the translation data. |\n| [Translator](/reference/kotlin/android/view/translation/Translator) | The [Translator](/reference/kotlin/android/view/translation/Translator) for translation, defined by a [TranslationContext](/reference/kotlin/android/view/translation/TranslationContext). |\n| [UiTranslationManager](/reference/kotlin/android/view/translation/UiTranslationManager) | The [UiTranslationManager](/reference/kotlin/android/view/translation/UiTranslationManager) class provides ways for apps to use the ui translation function in framework. |\n| [ViewTranslationRequest](/reference/kotlin/android/view/translation/ViewTranslationRequest) | Wrapper class representing a translation request associated with a [android.view.View](../View.html#) to be used by translation service. |\n| [ViewTranslationResponse](/reference/kotlin/android/view/translation/ViewTranslationResponse) | Wrapper class representing a translation response associated with a [android.view.View](../View.html#) to be used by translation service. |"]]