@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface WireCommandOptionsExperimental

    What WireCommands.register takes: the command's local id, the player's declaration, its first state and the handler.

    Experimental: the wire protocol is not semver; this member changes with versions.

    A toggle in the Video menu, shown checked from the start. The state fields are the player's (enabled, checked, busy, reason).

    const options: WireCommandOptions = {
    id: "grid",
    declaration: { title: "Grid", path: ["Video", "Grid"], order: 0, group: "domain",
    radio: false, bindings: [], focus: null, repeat: false },
    state: { checked: true }, // the player's state fields
    };
    plugin.wire.commands.register(options);

    1.7.0

    interface WireCommandOptions {
        id: string;
        declaration: { readonly [field: string]: Json };
        state?: WireCommandState;
        when?: Json;
        run?: () => unknown;
    }
    Index
    id: string

    The command's local id, unique within the plugin (as CommandOptions.id).

    declaration: { readonly [field: string]: Json }

    The declaration, as the player's commands.register takes it.

    The first state; omitted fields are enabled, unchecked (null), not busy, no reason.

    when?: Json

    The player's conditions for enabled and checked, in wire form.

    run?: () => unknown

    Runs when the user picks the command or presses its key.