# HandleAppFunctionRequest

Artifact: [androidx.appfunctions:appfunctions](https://developer.android.com/jetpack/androidx/releases/appfunctions) [View Source](https://cs.android.com/search?q=file:androidx/appfunctions/HandleAppFunctionRequest.kt+class:androidx.appfunctions.HandleAppFunctionRequest) Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

*** ** * ** ***


```
@ExperimentalAppFunctionsApi
public final class HandleAppFunctionRequest
```

<br />

*** ** * ** ***

A request to register a `https://developer.android.com/reference/androidx/appfunctions/SuspendingAppFunction` implementation, provided to `https://developer.android.com/reference/androidx/appfunctions/AppFunctionManager#handleAppFunction(kotlin.String,androidx.appfunctions.SuspendingAppFunction)`.

This encapsulates the information needed to register a single app function.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/HandleAppFunctionRequest#HandleAppFunctionRequest(kotlin.String,androidx.appfunctions.SuspendingAppFunction)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html functionIdentifier, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/SuspendingAppFunction appFunction )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/SuspendingAppFunction` | `https://developer.android.com/reference/androidx/appfunctions/HandleAppFunctionRequest#getAppFunction()()` The implementation of the app function. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/HandleAppFunctionRequest#getFunctionIdentifier()()` The unique identifier of the app function. |

## Public constructors

### HandleAppFunctionRequest

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

```
public HandleAppFunctionRequest(
    @NonNull String functionIdentifier,
    @NonNull SuspendingAppFunction appFunction
)
```

## Public methods

### getAppFunction

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

```
public final @NonNull SuspendingAppFunction getAppFunction()
```

The implementation of the app function.

### getFunctionIdentifier

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

```
public final @NonNull String getFunctionIdentifier()
```

The unique identifier of the app function.