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を呼び出すときにViewTranslationResponseを使用して翻訳を表示できるように、ViewTranslationCallback#onShowTranslationをここに保存する必要があります。

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

Javaドキュメント。

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

適用対象