Language

OnDevicePersonalizationManager.ExecuteResult.GetOutputData Method

Definition

Returns the output data that was returned by the IsolatedService.

[Android.Runtime.Register("getOutputData", "()[B", "GetGetOutputDataHandler", ApiSince=35)]
public virtual byte[]? GetOutputData();
[<Android.Runtime.Register("getOutputData", "()[B", "GetGetOutputDataHandler", ApiSince=35)>]
abstract member GetOutputData : unit -> byte[]
override this.GetOutputData : unit -> byte[]

Returns

Byte[]

The data that the service returned, or null. The platform returns data only if the service returned it and policy and the allowlist allow it.

Attributes

Remarks

Returns the output data that was returned by the IsolatedService. In the Android 15 release implementation, this is non-null only if the IsolatedService returns output data to the caller and the egress of data from the IsolatedService to the specific calling app is allowed by policy as well as an allowlist. In the Android 16 release implementation, the ExecuteResult that OnDevicePersonalizationManager.Execute delivers always has null output data. In the Android 17 release implementation, Execute reports an IllegalStateException to the receiver instead of a result.

Java documentation for android.adservices.ondevicepersonalization.OnDevicePersonalizationManager.ExecuteResult.getOutputData().

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