ExecuteInput


public final class ExecuteInput
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.ExecuteInput


The input data for IsolatedWorker.onExecute(ExecuteInput, android.os.OutcomeReceiver).

Summary

Public constructors

ExecuteInput(String appPackageName, PersistableBundle appParams)

Creates an ExecuteInput.

Public methods

String getAppPackageName()

The package name of the calling app.

PersistableBundle getAppParams()

The parameters provided by the app to the IsolatedService.

Inherited methods

Public constructors

ExecuteInput

public ExecuteInput (String appPackageName, 
                PersistableBundle appParams)

Creates an ExecuteInput.

Parameters
appPackageName String: the package name of the calling app. This value cannot be null.

appParams PersistableBundle: the parameters provided by the app to the IsolatedService. The service defines the expected keys in this PersistableBundle. This value cannot be null.

Public methods

getAppPackageName

Added in API level 35
public String getAppPackageName ()

The package name of the calling app.

Returns
String This value cannot be null.

getAppParams

Added in API level 35
public PersistableBundle getAppParams ()

The parameters provided by the app to the IsolatedService. The service defines the expected keys in this PersistableBundle.

Returns
PersistableBundle This value cannot be null.