View.OnViewTranslationResponse(ViewTranslationResponse) Método

Definición

Se llama cuando el servicio TranslationService ha traducido el contenido de View#onCreateViewTranslationRequest .

[Android.Runtime.Register("onViewTranslationResponse", "(Landroid/view/translation/ViewTranslationResponse;)V", "GetOnViewTranslationResponse_Landroid_view_translation_ViewTranslationResponse_Handler", ApiSince=31)]
public virtual void OnViewTranslationResponse (Android.Views.Translation.ViewTranslationResponse response);
[<Android.Runtime.Register("onViewTranslationResponse", "(Landroid/view/translation/ViewTranslationResponse;)V", "GetOnViewTranslationResponse_Landroid_view_translation_ViewTranslationResponse_Handler", ApiSince=31)>]
abstract member OnViewTranslationResponse : Android.Views.Translation.ViewTranslationResponse -> unit
override this.OnViewTranslationResponse : Android.Views.Translation.ViewTranslationResponse -> unit

Parámetros

response
ViewTranslationResponse

que ViewTranslationResponse contiene la información traducida que se puede mostrar en la vista.

Atributos

Comentarios

Se llama cuando el servicio TranslationService ha traducido el contenido de View#onCreateViewTranslationRequest . ViewTranslationResponse se debe guardar aquí para que ViewTranslationResponse se pueda usar para mostrar la traducción cuando el sistema llama a ViewTranslationCallback#onShowTranslation.

La implementación predeterminada establecerá viewTranslationResponse que se puede obtener de View#getViewTranslationResponse.

Documentación de Java para android.view.View.onViewTranslationResponse(android.view.translation.ViewTranslationResponse).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código Project y que se usan según los términos Creative Commons 2.5 Attribution License.

Se aplica a