ExecuteOutput.Builder.SetOutputData(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets optional byte array output data for an IsolatedService.
[Android.Runtime.Register("setOutputData", "([B)Landroid/adservices/ondevicepersonalization/ExecuteOutput$Builder;", "", ApiSince=35)]
public Android.AdServices.OnDevicePersonalization.ExecuteOutput.Builder SetOutputData(params byte[]? value);
[<Android.Runtime.Register("setOutputData", "([B)Landroid/adservices/ondevicepersonalization/ExecuteOutput$Builder;", "", ApiSince=35)>]
member this.SetOutputData : byte[] -> Android.AdServices.OnDevicePersonalization.ExecuteOutput.Builder
Parameters
- value
- Byte[]
The byte array to set as output data, or null if there is none.
Returns
This builder, with the output data assigned.
- Attributes
Remarks
An IsolatedService can set a byte array as output data. In Android 15, OnDevicePersonalizationManager.Execute can return this data through ExecuteResult.GetOutputData only if policy allows it and the calling-app and service pair is allowlisted. In Android 16, Execute delivers an ExecuteResult whose GetOutputData always returns null. In Android 17, Execute reports an IllegalStateException to its receiver instead of delivering an ExecuteResult.
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.