Racehorse
    Preparing search index...

    Interface ProcessManager

    interface ProcessManager {
        getProcessState(): ProcessState;
        subscribe(listener: (processState: ProcessState) => void): Unsubscribe;
        subscribe(eventType: "background", listener: () => void): Unsubscribe;
        subscribe(eventType: "foreground", listener: () => void): Unsubscribe;
        subscribe(eventType: "active", listener: () => void): Unsubscribe;
    }
    Index

    Methods

    • Subscribes a listener to process status changes.

      Parameters

      Returns Unsubscribe

    • The process went to background: user doesn't see the process anymore.

      Parameters

      • eventType: "background"
      • listener: () => void

      Returns Unsubscribe

    • The process entered foreground: user can see the process but cannot interact with it.

      Parameters

      • eventType: "foreground"
      • listener: () => void

      Returns Unsubscribe

    • The process became active: user can see the process and can interact with it.

      Parameters

      • eventType: "active"
      • listener: () => void

      Returns Unsubscribe