View.OnViewTranslationResponse(ViewTranslationResponse) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當翻譯 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。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。