ExecuteAppFunctionRequest


class ExecuteAppFunctionRequest : Parcelable
kotlin.Any
   ↳ android.app.appsearch.functions.ExecuteAppFunctionRequest

Represents a request to execute a specific app function.

Summary

Nested classes

The builder for creating ExecuteAppFunctionRequest instances.

Inherited constants
Public methods
Bundle

Returns additional metadata relevant to this function execution request.

String

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

GenericDocument

Returns the parameters required to invoke this function.

ByteArray?

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

String

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

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<ExecuteAppFunctionRequest!>

Public methods

getExtras

fun getExtras(): Bundle

Returns additional metadata relevant to this function execution request.

Return
Bundle This value cannot be null.

getFunctionIdentifier

fun getFunctionIdentifier(): String

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

Return
String This value cannot be null.

getParameters

fun getParameters(): GenericDocument

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.

Return
GenericDocument This value cannot be null.

getSha256Certificate

fun getSha256Certificate(): ByteArray?

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

getTargetPackageName

fun getTargetPackageName(): String

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

Return
String This value cannot be null.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

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_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

static val CREATOR: Parcelable.Creator<ExecuteAppFunctionRequest!>