Sdílet prostřednictvím


Android.Views.Translation Namespace

Classes

TranslationCapability

Capability class holding information for a pair of TranslationSpecs.

TranslationCapability.InterfaceConsts
TranslationContext

Info class holding information for Translators and used by TranslationManager#createOnDeviceTranslator(TranslationContext, Executor, Consumer).

TranslationContext.Builder

A builder for TranslationContext

TranslationContext.InterfaceConsts
TranslationManager

The TranslationManager class provides ways for apps to integrate and use the translation framework.

TranslationRequest

Translation request sent to the android.service.translation.TranslationService by the android.view.translation.Translator which contains the text to be translated.

TranslationRequest.Builder

A builder for TranslationRequest

TranslationRequest.InterfaceConsts
TranslationRequestValue

A value to be translated via android.view.translation.Translator.

TranslationRequestValue.InterfaceConsts
TranslationResponse

Response from the TranslationService, which contains the translated result.

TranslationResponse.Builder

A builder for TranslationResponse

TranslationResponse.InterfaceConsts
TranslationResponseValue

A translated response value from android.service.translation.TranslationService.

TranslationResponseValue.Builder

A builder for TranslationResponseValue

TranslationResponseValue.InterfaceConsts
TranslationSpec

Specs and additional info for the translation data.

TranslationSpec.InterfaceConsts
Translator

The Translator for translation, defined by a TranslationContext.

UiTranslationManager

The UiTranslationManager class provides ways for apps to use the ui translation function in framework.

ViewTranslationRequest

Wrapper class representing a translation request associated with a android.view.View to be used by android.service.translation.TranslationService.

ViewTranslationRequest.Builder

A builder for building ViewTranslationRequest.

ViewTranslationRequest.InterfaceConsts
ViewTranslationResponse

Wrapper class representing a translation response associated with a android.view.View to be used by android.service.translation.TranslationService.

ViewTranslationResponse.Builder

A builder for ViewTranslationResponse

ViewTranslationResponse.InterfaceConsts

Interfaces

IUiTranslationStateCallback

Callback for listening to UI Translation state changes.

IViewTranslationCallback

Callback for handling the translated information show or hide in the View.

Enums

TranslationContextFlags
TranslationDataFormat
TranslationRequestFlags
TranslationResponseStatus
TranslationResponseValueStatus
TranslationState