IFClite TypeScript API
    Preparing search index...

    Interface FlavorSwitcherCallbacks

    interface FlavorSwitcherCallbacks {
        deactivate(id: string): Promise<void>;
        readActiveFlavor?(): Promise<string | undefined>;
        reload(id: string): Promise<boolean>;
        setActiveFlavor(id: string): Promise<void>;
        setEnabled(id: string, enabled: boolean): Promise<void>;
    }
    Index
    • Stop any running activation for an extension that's being disabled.

      Parameters

      • id: string

      Returns Promise<void>

    • Read the persisted active-flavor pointer back, if the host can.

      Optional. Supplying it lets the switcher tell a refused pointer write that would have changed nothing from one that would have: without it, every refusal fails the switch, which is the behaviour a host that does not supply it already had.

      Returns Promise<string | undefined>

    • Load + activate an extension that's being enabled. Returns false on failure.

      Parameters

      • id: string

      Returns Promise<boolean>

    • Persist the active-flavor pointer.

      Parameters

      • id: string

      Returns Promise<void>

    • Set the enabled flag on an installed extension.

      Parameters

      • id: string
      • enabled: boolean

      Returns Promise<void>