View.OnViewTranslationResponse(ViewTranslationResponse) メソッド

定義

View#onCreateViewTranslationRequest コンテンツが 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

パラメーター

response
ViewTranslationResponse

ViewTranslationResponseビューに表示できる翻訳された情報を含む 。

属性

注釈

View#onCreateViewTranslationRequest コンテンツが TranslationService によって翻訳されたときに呼び出されます。 ViewTranslationResponseは、システムが を呼び出ViewTranslationCallback#onShowTranslationすときに 変換を表示するために を使用できるようにViewTranslationResponse、ここに保存する必要があります。

既定の実装では、 から View#getViewTranslationResponse取得できる ViewTranslationResponse が設定されます。

android.view.View.onViewTranslationResponse(android.view.translation.ViewTranslationResponse)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象