Compartir a través de


View.OnVirtualViewTranslationResponses(LongSparseArray) Method

Definition

Called when the content from View#onCreateVirtualViewTranslationRequests had been translated by the TranslationService.

[Android.Runtime.Register("onVirtualViewTranslationResponses", "(Landroid/util/LongSparseArray;)V", "GetOnVirtualViewTranslationResponses_Landroid_util_LongSparseArray_Handler", ApiSince=31)]
public virtual void OnVirtualViewTranslationResponses (Android.Util.LongSparseArray response);
[<Android.Runtime.Register("onVirtualViewTranslationResponses", "(Landroid/util/LongSparseArray;)V", "GetOnVirtualViewTranslationResponses_Landroid_util_LongSparseArray_Handler", ApiSince=31)>]
abstract member OnVirtualViewTranslationResponses : Android.Util.LongSparseArray -> unit
override this.OnVirtualViewTranslationResponses : Android.Util.LongSparseArray -> unit

Parameters

response
LongSparseArray

a ViewTranslationResponse SparseArray for the request that send by View#onCreateVirtualViewTranslationRequests that contains the translated information which can be shown in the view. The key of SparseArray is the virtual child ids.

Attributes

Remarks

Called when the content from View#onCreateVirtualViewTranslationRequests had been translated by the TranslationService.

The default implementation does nothing.

Java documentation for android.view.View.onVirtualViewTranslationResponses(android.util.LongSparseArray<android.view.translation.ViewTranslationResponse>).

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