Class PrinterService

Represents the Printer Service interface. Extends the IAppRemoteService interface with IPrinter.

Hierarchy

Implements

Constructors

Properties

db: Dexie
http: AxiosInstance
methodName: string = 'printer'
moduleName: string = 'printers'

Methods

  • Searches for available printers on the network with the specified IP address and port number.

    Parameters

    • refresh: boolean = false

      A boolean value indicating whether to refresh the cache. Default is false.

    • port: number = 9100

      The port number of the network. Default is 9100.

    Returns Promise<string[]>

    A promise that resolves to an array of printer names found on the network.

Generated using TypeDoc