kaios-types
    Preparing search index...

    Interface SystemUpdateProvider

    system-update

    dom.system_update.enabled Represents a provider for system updates.

    interface SystemUpdateProvider {
        name: string;
        onerror: EventHandler;
        onprogress: EventHandler;
        onupdateavailable: EventHandler;
        onupdateready: EventHandler;
        uuid: string;
        addEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | AddEventListenerOptions,
        ): void;
        applyUpdate(): void;
        checkForUpdate(): void;
        dispatchEvent(event: Event): boolean;
        getParameter(name: string): string;
        removeEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | EventListenerOptions,
        ): void;
        setParameter(name: string, value: string): boolean;
        startDownload(): void;
        stopDownload(): void;
    }

    Hierarchy

    • EventTarget
      • SystemUpdateProvider
    Index

    Properties

    name: string

    The name of the provider.

    onerror: EventHandler

    Event handler for when an error occurs.

    onprogress: EventHandler

    Event handler for update progress.

    onupdateavailable: EventHandler

    Event handler for when an update is available.

    onupdateready: EventHandler

    Event handler for when an update is ready to be installed.

    uuid: string

    The UUID of the provider.

    Methods

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Gets a parameter from the update provider.

      Parameters

      • name: string

        The name of the parameter.

      Returns string

      The value of the parameter.

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Sets a parameter for the update provider.

      Parameters

      • name: string

        The name of the parameter.

      • value: string

        The value of the parameter.

      Returns boolean

      True if the parameter was set successfully.