FrontPanel Platform API - v6.0.0
    Preparing search index...

    Interface IDeviceManager

    Interface that provides the methods that may be used to open a device and start/stop monitoring device connection/disconnection events.

    interface IDeviceManager {
        get deviceConnectedEvent(): IDeviceEvent;
        get deviceDisconnectedEvent(): IDeviceEvent;
        openDevice(serialNumber: string): Promise<IDevice>;
        startMonitoring(): Promise<boolean>;
        stopMonitoring(): Promise<boolean>;
    }
    Index

    Accessors

    • get deviceConnectedEvent(): IDeviceEvent

      Event that notifies subscribers when a Device has been connected.

      Returns IDeviceEvent

    • get deviceDisconnectedEvent(): IDeviceEvent

      Event that notifies subscribers when a Device has been disconnected.

      Returns IDeviceEvent

    Methods

    • Retrieves an interface to a specific device identified by its serial number.

      Parameters

      • serialNumber: string

        The serial number of the device.

      Returns Promise<IDevice>

      • A promise that resolves to an interface for the Device.
    • Starts monitoring for device connection and disconnection events.

      Returns Promise<boolean>

      • A promise that resolves to True if device monitoring was started successfully, otherwise false.
    • Stops monitoring for device connection and disconnection events.

      Returns Promise<boolean>

      • A promise that resolves to True if device monitoring was stopped successfully, otherwise false.