---
title: "hostAction"
description: "Creates an Action that triggers a named action on the host."
type: "function"
lastmod: "2026-06-04T09:07:43.469933Z"
---
## API Reference

### hostAction

> Source set: Android

```kotlin
public fun hostAction(name: RemoteString): Action
```

Creates an [Action](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/Action) that triggers a named action on the host.

#### Parameters

| | |
| --- | --- |
| name | The name of the action. |

### hostAction

> Source set: Android

```kotlin
public fun hostAction(name: RemoteString, value: RemoteFloat): Action
```

Creates an [Action](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/Action) that triggers a named action on the host with a float value.

#### Parameters

| | |
| --- | --- |
| name | The name of the action. |
| value | The float value to pass with the action. |

### hostAction

> Source set: Android

```kotlin
public fun hostAction(name: RemoteString, value: RemoteInt): Action
```

Creates an [Action](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/Action) that triggers a named action on the host with an int value.

#### Parameters

| | |
| --- | --- |
| name | The name of the action. |
| value | The int value to pass with the action. |

### hostAction

> Source set: Android

```kotlin
public fun hostAction(name: RemoteString, value: RemoteString): Action
```

Creates an [Action](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/Action) that triggers a named action on the host with a string value.

#### Parameters

| | |
| --- | --- |
| name | The name of the action. |
| value | The string value to pass with the action. |
