View.OnViewTranslationResponse(ViewTranslationResponse) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
の 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 が設定されます。
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。