Język

InferenceOutput.Builder.AddDataOutput(Int32, Object) Method

Definition

Adds an output value for a model output index.

[Android.Runtime.Register("addDataOutput", "(ILjava/lang/Object;)Landroid/adservices/ondevicepersonalization/InferenceOutput$Builder;", "", ApiSince=35)]
public Android.AdServices.OnDevicePersonalization.InferenceOutput.Builder AddDataOutput(int key, Java.Lang.Object value);
[<Android.Runtime.Register("addDataOutput", "(ILjava/lang/Object;)Landroid/adservices/ondevicepersonalization/InferenceOutput$Builder;", "", ApiSince=35)>]
member this.AddDataOutput : int * Java.Lang.Object -> Android.AdServices.OnDevicePersonalization.InferenceOutput.Builder

Parameters

key
Int32

The index of the model output.

value
Object

The output value for the index.

Returns

This builder, with the output value added.

Attributes

Remarks

If no output map is assigned, this method creates one before it adds the value. See the Android source.

Applies to