CockpitAppActionHandler typedef

CockpitAppActionHandler = FutureOr<Map<String, Object?>?> Function(Map<String, Object?> arguments)

Handles one app-registered action for appAction commands.

Only actions the application explicitly registered are invoked. The handler may be asynchronous; the returned value is normalized, bounded, and redacted before it leaves the app process, and returning null reports the action as applied without a result payload.

Implementation

typedef CockpitAppActionHandler =
    FutureOr<Map<String, Object?>?> Function(Map<String, Object?> arguments);