# A2uiFunctionCallAction

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/protocol/A2uiUserAction.kt+class:androidx.a2ui.model.protocol.A2uiFunctionCallAction) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
class A2uiFunctionCallAction : A2uiUserAction
```

<br />

*** ** * ** ***

Defines a local component function execution action triggered by a user interaction.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#A2uiFunctionCallAction(kotlin.String,kotlin.String,kotlin.Long,kotlin.String,kotlin.collections.Map)( surfaceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, componentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, timestamp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, functionName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, args: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#args()` map containing arguments to pass to the function |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#componentId()` unique identifier of the component that was interacted with |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#functionName()` name of the function to execute |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#surfaceId()` unique identifier of the surface where the action occurred |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiFunctionCallAction#timestamp()` timestamp of when the action occurred, represented as milliseconds since the epoch |

## Public constructors

### A2uiFunctionCallAction

```
A2uiFunctionCallAction(
    surfaceId: String,
    componentId: String,
    timestamp: Long,
    functionName: String,
    args: Map<String, Any?>
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### args

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

```
val args: Map<String, Any?>
```

map containing arguments to pass to the function

### componentId

```
open val componentId: String
```

unique identifier of the component that was interacted with

### functionName

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

```
val functionName: String
```

name of the function to execute

### surfaceId

```
open val surfaceId: String
```

unique identifier of the surface where the action occurred

### timestamp

```
open val timestamp: Long
```

timestamp of when the action occurred, represented as milliseconds since the epoch