語言

View.OnViewTranslationResponse(ViewTranslationResponse) 方法

定義

當翻譯 View#onCreateViewTranslationRequest 服務翻譯內容後,會打電話給他。

[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

a ViewTranslationResponse 包含可於視圖中顯示的翻譯資訊。

屬性

備註

當翻譯 View#onCreateViewTranslationRequest 服務翻譯內容後,會打電話給他。 ViewTranslationResponse應將 儲存在此,以便ViewTranslationResponse系統呼叫 ViewTranslationCallback#onShowTranslation時可用來顯示翻譯結果。

預設實作會設定可從 View#getViewTranslationResponse取得的 ViewTranslationResponse。

Java 文件 android.view.View.onViewTranslationResponse(android.view.translation.ViewTranslationResponse)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於