Skip to main content

SystemListenerInput

interface

Fields accepted by `system.on(...)`.

interface SystemListenerInput<TPayload>

Import

import { SystemListenerInput } from '@modular/sdk';

Members5

event
string

Which of that source's events to listen for.

handle
SystemListenerHandler<TPayload>

Runs on every occurrence.

id
string

Identifier, unique within the mod.

source
`system.${string}`

Which host source to listen to, for example `'system.power'`.

title
string

Label shown where the host lists active subscriptions.

Notes

category
State