Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

hostAction

Creates an Action that triggers a named action on the host.

hostAction

Source set: Android
public fun hostAction(name: RemoteString): Action

Creates an Action that triggers a named action on the host.

Parameters

name The name of the action.

hostAction

Source set: Android
public fun hostAction(name: RemoteString, value: RemoteFloat): Action

Creates an 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
public fun hostAction(name: RemoteString, value: RemoteInt): Action

Creates an 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
public fun hostAction(name: RemoteString, value: RemoteString): Action

Creates an 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.

Last updated: