ExecuteAppFunctionRequest


class ExecuteAppFunctionRequest : Parcelable
kotlin.Any
   ↳ android.app.appfunctions.ExecuteAppFunctionRequest

A request to execute an app function.

Summary

Nested classes

Builder for ExecuteAppFunctionRequest.

Inherited constants
Public methods
Int

Bundle

Returns the additional metadata for this function execution request.

String

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

GenericDocument

Returns the function parameters.

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

describeContents

fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getExtras

fun getExtras(): Bundle

Returns the additional metadata for 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.

When there is a package change or the device starts up, the metadata of available functions is indexed by AppSearch. AppSearch stores the indexed information as AppFunctionStaticMetadata document.

The ID can be obtained by querying the AppFunctionStaticMetadata documents from AppSearch.

If the functionId provided is invalid, the caller will get an invalid argument response.

Return
String This value cannot be null.

getParameters

fun getParameters(): GenericDocument

Returns the function parameters. The key is the parameter name, and the value is the parameter value.

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

Return
GenericDocument This value cannot be null.

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!>