Added in API level 31
android.view.translation
Interfaces
| UiTranslationStateCallback | Callback for listening to UI Translation state changes. |
| ViewTranslationCallback |
Callback for handling the translated information show or hide in the |
Classes
| TranslationCapability |
Capability class holding information for a pair of TranslationSpecs.
|
| TranslationContext |
Info class holding information for Translators and used by
TranslationManager.createOnDeviceTranslator(TranslationContext, Executor, Consumer).
|
| TranslationContext.Builder |
A builder for TranslationContext
|
| TranslationManager |
The TranslationManager class provides ways for apps to integrate and use the
translation framework.
|
| TranslationRequest |
Translation request sent to the translation service by the
Translator which contains the text to be translated.
|
| TranslationRequest.Builder |
A builder for TranslationRequest
|
| TranslationRequestValue |
A value to be translated via Translator.
|
| TranslationResponse | Response from the translation service, which contains the translated result. |
| TranslationResponse.Builder |
A builder for TranslationResponse
|
| TranslationResponseValue | A translated response value from translation service. |
| TranslationResponseValue.Builder |
A builder for TranslationResponseValue
|
| TranslationSpec | Specs and additional info for the translation data. |
| Translator |
The Translator for translation, defined by a TranslationContext.
|
| UiTranslationManager |
The |
| ViewTranslationRequest |
Wrapper class representing a translation request associated with a View to
be used by translation service.
|
| ViewTranslationRequest.Builder | A builder for building ViewTranslationRequest. |
| ViewTranslationResponse |
Wrapper class representing a translation response associated with a View to
be used by translation service.
|
| ViewTranslationResponse.Builder |
A builder for ViewTranslationResponse
|
Interfaces
Classes
- TranslationCapability
- TranslationContext
- TranslationContext.Builder
- TranslationManager
- TranslationRequest
- TranslationRequest.Builder
- TranslationRequestValue
- TranslationResponse
- TranslationResponse.Builder
- TranslationResponseValue
- TranslationResponseValue.Builder
- TranslationSpec
- Translator
- UiTranslationManager
- ViewTranslationRequest
- ViewTranslationRequest.Builder
- ViewTranslationResponse
- ViewTranslationResponse.Builder