Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for ExecuteAppFunctionRequest
.
Summary
Public constructors |
Creates a new instance of this builder class.
|
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
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# ExecuteAppFunctionRequest.Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/appfunctions/ExecuteAppFunctionRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|-----------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.app.appfunctions.ExecuteAppFunctionRequest.Builder](#) |\n\nBuilder for [ExecuteAppFunctionRequest](/reference/kotlin/android/app/appfunctions/ExecuteAppFunctionRequest).\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder(kotlin.String,%20kotlin.String))`(`targetPackageName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `functionIdentifier:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Creates a new instance of this builder class. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ExecuteAppFunctionRequest](/reference/kotlin/android/app/appfunctions/ExecuteAppFunctionRequest) | [build](#build())`()` Builds the [ExecuteAppFunctionRequest](/reference/kotlin/android/app/appfunctions/ExecuteAppFunctionRequest). |\n| [ExecuteAppFunctionRequest.Builder](#) | [setExtras](#setExtras(android.os.Bundle))`(`extras:` `[Bundle](../../os/Bundle.html#)`)` Sets the additional metadata for this function execution request. |\n| [ExecuteAppFunctionRequest.Builder](#) | [setParameters](#setParameters(android.app.appsearch.GenericDocument))`(`parameters:` `[GenericDocument](../appsearch/GenericDocument.html#)`)` Sets the function parameters. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(\n targetPackageName: String, \n functionIdentifier: String)\n```\n\nCreates a new instance of this builder class.\n\n| Parameters ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetPackageName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): The package name of the target app providing the app function to invoke. This value cannot be `null`. |\n| `functionIdentifier` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): The identifier used by the [AppFunctionService](/reference/kotlin/android/app/appfunctions/AppFunctionService) from the target app to uniquely identify the function to be invoked. This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): ExecuteAppFunctionRequest\n```\n\nBuilds the [ExecuteAppFunctionRequest](/reference/kotlin/android/app/appfunctions/ExecuteAppFunctionRequest).\n\n| Return ||\n|---------------------------------------------------------------------------------------------------|------------------------------|\n| [ExecuteAppFunctionRequest](/reference/kotlin/android/app/appfunctions/ExecuteAppFunctionRequest) | This value cannot be `null`. |\n\n### setExtras\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setExtras(extras: Bundle): ExecuteAppFunctionRequest.Builder\n```\n\nSets the additional metadata for this function execution request.\n\n| Parameters ||\n|----------|---------------------------------------------------------------|\n| `extras` | [Bundle](../../os/Bundle.html#): This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [ExecuteAppFunctionRequest.Builder](#) | This value cannot be `null`. |\n\n### setParameters\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setParameters(parameters: GenericDocument): ExecuteAppFunctionRequest.Builder\n```\n\nSets the function parameters.\n\n| Parameters ||\n|--------------|-------------------------------------------------------------------------------------|\n| `parameters` | [GenericDocument](../appsearch/GenericDocument.html#): This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [ExecuteAppFunctionRequest.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [#ExecuteAppFunctionRequest](#)"]]