ExecuteOutput.GetOutputData 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.
An optional byte array that an IsolatedService can set as output data.
[Android.Runtime.Register("getOutputData", "()[B", "", ApiSince=35)]
public byte[]? GetOutputData();
[<Android.Runtime.Register("getOutputData", "()[B", "", ApiSince=35)>]
member this.GetOutputData : unit -> byte[]
Returns
The output data, or null if none is set.
- 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.
Java documentation for android.adservices.ondevicepersonalization.ExecuteOutput.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.