ExecuteAppFunctionRequest


public final class ExecuteAppFunctionRequest
extends Object implements Parcelable

java.lang.Object
   ↳ android.app.appsearch.functions.ExecuteAppFunctionRequest


Represents a request to execute a specific app function.

Summary

Nested classes

class ExecuteAppFunctionRequest.Builder

The builder for creating ExecuteAppFunctionRequest instances. 

Inherited constants

Fields

public static final Creator<ExecuteAppFunctionRequest> CREATOR

Public methods

Bundle getExtras()

Returns additional metadata relevant to this function execution request.

String getFunctionIdentifier()

Returns the unique string identifier of the app function to be executed.

GenericDocument getParameters()

Returns the parameters required to invoke this function.

byte[] getSha256Certificate()

Returns the expected certificate SHA-256 digests of the target package.

String getTargetPackageName()

Returns the package name of the app that hosts the function.

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

Fields

CREATOR

public static final Creator<ExecuteAppFunctionRequest> CREATOR

Public methods

getExtras

public Bundle getExtras ()

Returns additional metadata relevant to this function execution request.

Returns
Bundle This value cannot be null.

getFunctionIdentifier

public String getFunctionIdentifier ()

Returns the unique string identifier of the app function to be executed.

Returns
String This value cannot be null.

getParameters

public GenericDocument getParameters ()

Returns the parameters required to invoke this function. Within this GenericDocument, the property names are the names of the function parameters and the property values are the values of those parameters

The document may have missing parameters. Developers are advised to implement defensive handling measures.

Returns
GenericDocument This value cannot be null.

getSha256Certificate

public byte[] getSha256Certificate ()

Returns the expected certificate SHA-256 digests of the target package. Returns null if no certificate digest checking is configured.

Returns
byte[]

getTargetPackageName

public String getTargetPackageName ()

Returns the package name of the app that hosts the function.

Returns
String This value cannot be null.

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.

flags int: Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES