> Documentation index: https://developer.android.com/reference/llms.txt

# HandleAppFunctionRequestAdapter

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

*** ** * ** ***


```
@ExperimentalAppFunctionsApi
public interface HandleAppFunctionRequestAdapter<T extends Object>
```

<br />

*** ** * ** ***

An adapter for an interface annotated with `AppFunctionSignature`.

Implementations of this interface are generated by the AppFunction compiler for interfaces annotated with `AppFunctionSignature`, and should not be manually implemented.

Instances of this adapter can be obtained via `AppFunctionManager.getHandleAppFunctionRequestAdapter`.

| Parameters |
|---|---|
| `<T extends Object>` | The type of the interface annotated with `AppFunctionSignature`. |

| See also |
|---|---|
| `AppFunctionSignature` |   |
| `getHandleAppFunctionRequestAdapter` |   |

## Summary

| ### Public methods |
|---|---|
| `abstract @NonNull HandleAppFunctionRequest` | `adapt(@NonNull T instance)` Creates a `HandleAppFunctionRequest` for the given `instance`. |
| `abstract @NonNull String` | `getFunctionIdentifier()` The unique identifier of the app function. |

## Public methods

### adapt

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

```
abstract @NonNull HandleAppFunctionRequest adapt(@NonNull T instance)
```

Creates a `HandleAppFunctionRequest` for the given `instance`.

| Parameters |
|---|---|
| `@NonNull T instance` | The implementation of the app function interface. |

| Returns |
|---|---|
| `@NonNull HandleAppFunctionRequest` | The `HandleAppFunctionRequest` wrapping the `instance`. |

### getFunctionIdentifier

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

```
abstract @NonNull String getFunctionIdentifier()
```

The unique identifier of the app function.