Builder


class Builder
kotlin.Any
   ↳ android.app.appfunctions.ExecuteAppFunctionRequest.Builder

Builder for ExecuteAppFunctionRequest.

Summary

Public constructors
Builder(targetPackageName: String, functionIdentifier: String)

Creates a new instance of this builder class.

Public methods
ExecuteAppFunctionRequest

Builds the ExecuteAppFunctionRequest.

ExecuteAppFunctionRequest.Builder
setExtras(extras: Bundle)

Sets the additional metadata for this function execution request.

ExecuteAppFunctionRequest.Builder

Sets the function parameters.

Public constructors

Builder

Builder(
    targetPackageName: String,
    functionIdentifier: String)

Creates a new instance of this builder class.

Parameters
targetPackageName String: The package name of the target app providing the app function to invoke. This value cannot be null.
functionIdentifier String: The identifier used by the AppFunctionService from the target app to uniquely identify the function to be invoked. This value cannot be null.

Public methods

build

fun build(): ExecuteAppFunctionRequest

Builds the ExecuteAppFunctionRequest.

Return
ExecuteAppFunctionRequest This value cannot be null.

setExtras

fun setExtras(extras: Bundle): ExecuteAppFunctionRequest.Builder

Sets the additional metadata for this function execution request.

Parameters
extras Bundle: This value cannot be null.
Return
ExecuteAppFunctionRequest.Builder This value cannot be null.

setParameters

fun setParameters(parameters: GenericDocument): ExecuteAppFunctionRequest.Builder

Sets the function parameters.

Parameters
parameters GenericDocument: This value cannot be null.
Return
ExecuteAppFunctionRequest.Builder This value cannot be null.