Expand description
Data types shared between the plugin’s Rust core and the JS/Tauri layer.
ServiceContextis passed to everyBackgroundServicemethod.StartConfigandPluginConfigcontrol service and plugin behaviour.PluginEventrepresents events emitted to the JavaScript front-end.
Structs§
- Plugin
Config - Plugin-level configuration, deserialized from the Tauri plugin config.
- Service
Context - Passed into both
initandrun. Gives your service everything it needs to interact with the outside world. - Service
Status - Snapshot of the service lifecycle status.
- Start
Config - Optional startup configuration forwarded from JS through the plugin.
Enums§
- Plugin
Event - Built-in event types emitted by the runner itself.
- Service
State - Lifecycle state of the background service.
Constants§
- VALID_
FOREGROUND_ SERVICE_ TYPES - The 14 valid Android foreground service types.
Functions§
- validate_
foreground_ service_ type - Validate a foreground service type against the allowlist.