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
一个 ViewTranslationResponse
,其中包含可在视图中显示的已翻译信息。
- 属性
注解
当翻译服务翻译的内容 View#onCreateViewTranslationRequest
时调用。 应在此处保存 ,ViewTranslationResponse
ViewTranslationResponse
以便在系统调用 ViewTranslationCallback#onShowTranslation
时可以使用 来显示转换。
默认实现将设置可从 获取 View#getViewTranslationResponse
的 ViewTranslationResponse。
此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。