Skip to content

Commands

Creating commands

Rules

  1. Type annotation
  2. Asynchronous
  3. Return type

Function signature

  1. body
  2. app_handle
  3. webview_window
  4. headers
  5. state items

Receiving data

  1. Bytes
  2. Pydantic [BaseModels]
  3. Primitive types

Calling Commands