# A2uiFunctionArgParser

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/catalog/functions/A2uiFunctionArgParser.kt+class:androidx.a2ui.model.catalog.functions.A2uiFunctionArgParser) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
object A2uiFunctionArgParser
```

<br />

*** ** * ** ***

Reusable utility methods to parse and validate dynamic arguments passed to catalog functions.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a raw argument value from the `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)` map under the given `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a Boolean argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false". |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanListArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a List of Booleans under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanListArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false". |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a Double argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleListArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a List of Doubles under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getEpochMillisArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a UTC epoch millisecond timestamp argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getEpochMillisArg(kotlin.collections.Map,kotlin.String,kotlin.String)`, supporting numeric timestamps (in seconds or milliseconds) and ISO 8601 date / date-time strings. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves an Int argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntListArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a List of Ints under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a Long argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongListArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a List of Longs under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a String argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringListArg(kotlin.collections.Map,kotlin.String,kotlin.String)(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>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Retrieves a List of Strings under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |

## Public functions

### getArg

```
fun getArg(args: Map<String, Any>, key: String, path: String = "/"): Any
```

Retrieves a raw argument value from the `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)` map under the given `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key to retrieve. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The raw argument value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing. |

### getBooleanArg

```
fun getBooleanArg(args: Map<String, Any>, key: String, path: String = "/"): Boolean
```

Retrieves a Boolean argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false".

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The resolved Boolean value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getBooleanListArg

```
fun getBooleanListArg(args: Map<String, Any>, key: String, path: String = "/"): List<Boolean>
```

Retrieves a List of Booleans under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanListArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false".

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html>` | The resolved List of Booleans. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getDoubleArg

```
fun getDoubleArg(args: Map<String, Any>, key: String, path: String = "/"): Double
```

Retrieves a Double argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | The resolved Double value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getDoubleListArg

```
fun getDoubleListArg(args: Map<String, Any>, key: String, path: String = "/"): List<Double>
```

Retrieves a List of Doubles under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html>` | The resolved List of Doubles. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getEpochMillisArg

```
fun getEpochMillisArg(args: Map<String, Any>, key: String, path: String = "/"): Long
```

Retrieves a UTC epoch millisecond timestamp argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getEpochMillisArg(kotlin.collections.Map,kotlin.String,kotlin.String)`, supporting numeric timestamps (in seconds or milliseconds) and ISO 8601 date / date-time strings.

Date-only strings (e.g., `"2026-06-15"`) are normalized to UTC start-of-day. Numeric values less than 10,000,000,000 are treated as epoch seconds, otherwise as epoch milliseconds.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The resolved timestamp in UTC epoch milliseconds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or cannot be parsed as a date or timestamp. |

### getIntArg

```
fun getIntArg(args: Map<String, Any>, key: String, path: String = "/"): Int
```

Retrieves an Int argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The resolved Int value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getIntListArg

```
fun getIntListArg(args: Map<String, Any>, key: String, path: String = "/"): List<Int>
```

Retrieves a List of Ints under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | The resolved List of Ints. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getLongArg

```
fun getLongArg(args: Map<String, Any>, key: String, path: String = "/"): Long
```

Retrieves a Long argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The resolved Long value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getLongListArg

```
fun getLongListArg(args: Map<String, Any>, key: String, path: String = "/"): List<Long>
```

Retrieves a List of Longs under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>` | The resolved List of Longs. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getStringArg

```
fun getStringArg(args: Map<String, Any>, key: String, path: String = "/"): String
```

Retrieves a String argument under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The resolved String value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing, invalid or violates constraints. |

### getStringListArg

```
fun getStringListArg(args: Map<String, Any>, key: String, path: String = "/"): List<String>
```

Retrieves a List of Strings under `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `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>` | The map of arguments. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The argument key. |
| `path: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = "/"` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | The resolved List of Strings. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |