Share via


View.SetViewTranslationCallback(IViewTranslationCallback) Method

Definition

Sets a ViewTranslationCallback that is used to display/hide the translated information.

[Android.Runtime.Register("setViewTranslationCallback", "(Landroid/view/translation/ViewTranslationCallback;)V", "GetSetViewTranslationCallback_Landroid_view_translation_ViewTranslationCallback_Handler", ApiSince=31)]
public virtual void SetViewTranslationCallback (Android.Views.Translation.IViewTranslationCallback callback);
[<Android.Runtime.Register("setViewTranslationCallback", "(Landroid/view/translation/ViewTranslationCallback;)V", "GetSetViewTranslationCallback_Landroid_view_translation_ViewTranslationCallback_Handler", ApiSince=31)>]
abstract member SetViewTranslationCallback : Android.Views.Translation.IViewTranslationCallback -> unit
override this.SetViewTranslationCallback : Android.Views.Translation.IViewTranslationCallback -> unit

Parameters

callback
IViewTranslationCallback

a ViewTranslationCallback that is used to control how to display the translated information

Attributes

Remarks

Sets a ViewTranslationCallback that is used to display/hide the translated information. Developers can provide the customized implementation for show/hide translated information.

Java documentation for android.view.View.setViewTranslationCallback(android.view.translation.ViewTranslationCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to