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を呼び出すときにViewTranslationResponseを使用して翻訳を表示できるように、ViewTranslationCallback#onShowTranslationをここに保存する必要があります。
既定の実装では、 View#getViewTranslationResponseから取得できる ViewTranslationResponse が設定されます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。