hostAction
Source set: Android
public fun hostAction(name: RemoteString): Action
Creates an Action that triggers a named action on the host.
Named actions are delivered to the onNamedAction callback of the Compose players. name may be a constant or a dynamic RemoteString; a dynamic name is resolved to its current value when the action runs.
Launcher widgets (RemoteViews) only dispatch id actions; use hostAction with an id there.
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, delivered to the host as a Float. |
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, delivered to the host as an Int. |
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, delivered to the host as a String. |