Partager via


View.OnViewTranslationResponse(ViewTranslationResponse) Method

Definition

Called when the content from View#onCreateViewTranslationRequest had been translated by the TranslationService.

[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

Parameters

response
ViewTranslationResponse

a ViewTranslationResponse that contains the translated information which can be shown in the view.

Attributes

Remarks

Called when the content from View#onCreateViewTranslationRequest had been translated by the TranslationService. The ViewTranslationResponse should be saved here so that the ViewTranslationResponse can be used to display the translation when the system calls ViewTranslationCallback#onShowTranslation.

The default implementation will set the ViewTranslationResponse that can be get from View#getViewTranslationResponse.

Java documentation for android.view.View.onViewTranslationResponse(android.view.translation.ViewTranslationResponse).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to