Interface IPrinterService

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

Hierarchy

Implemented by

Properties

db: Dexie
moduleName: string

Methods

  • Retrieves multiple entities with optional pagination and filtering.

    Parameters

    • params: any

      [UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.

    • options: {
          page?: number;
          pageSize?: number;
      }

      Query options including pagination.

      • Optional page?: number
      • Optional pageSize?: number

    Returns Promise<{
        count: number;
        list: IPrinter[];
        page: number;
        pageSize: number;
    }>

    An object containing the retrieved entities and total count.

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

    Parameters

    • Optional refresh: boolean

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

    • Optional port: number

      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