Język

TranslationResponse.Builder.SetTranslationResponseValue Method

Definition

Adds a translated TranslationResponseValue.

[Android.Runtime.Register("setTranslationResponseValue", "(ILandroid/view/translation/TranslationResponseValue;)Landroid/view/translation/TranslationResponse$Builder;", "", ApiSince=31)]
public Android.Views.Translation.TranslationResponse.Builder SetTranslationResponseValue(int index, Android.Views.Translation.TranslationResponseValue value);
[<Android.Runtime.Register("setTranslationResponseValue", "(ILandroid/view/translation/TranslationResponseValue;)Landroid/view/translation/TranslationResponse$Builder;", "", ApiSince=31)>]
member this.SetTranslationResponseValue : int * Android.Views.Translation.TranslationResponseValue -> Android.Views.Translation.TranslationResponse.Builder

Parameters

index
Int32

The index of the corresponding value in the translation request's value list.

value
TranslationResponseValue

the translated value. This value cannot be null.

Returns

this Builder. This value cannot be null.

Attributes

Remarks

Adds a translated TranslationResponseValue. The input TranslationResponseValue format should match those provided by the Translator's targetSpec.

Android reference for android.view.translation.TranslationResponse.Builder.setTranslationResponseValue.

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