Printing Interface

In this article

IPrinter and IPrinterService

IBitmapPrint

ILineFeedPrint

IPrinterFontHandle

IReceiptPrinting

IReprint

The printing interface gives access to other print features.

IPrinter and IPrinterService

This interface will be a part of EAManagement if printing is supported on the PED.

IPrinter

public interface IPrinter
{
    IPrinterService GetPrinterService();
}

IPrinter gives access to IPrinterService which other print interfaces inherit. The service will post events indicating the connection, if supplied by the PED.

IPrinterService

public interface IPrinterService
{
    event PrintingStatus PrintingEvent;
}

IBitmapPrint

If PED supports printing of images, bitmap.

Copy
public interface IBitmapPrinting : IPrinterService
{
    Task<bool> PrintAsync(object bitmap, BitmapType bitmapType);
}

ILineFeedPrint

The interface is inherited, if PED supports line feed when printing on a receipt.

Copy
public interface ILineFeedPrinting : IPrinterService
{
    void FinishOnLineFeed(bool activate = true);

    Task<bool> LineFeed();
}

IPrinterFontHandle

The interface is inherited, if PED can switch between fonts. This is used by AltaPay on PAX A920.

Copy
public interface IPrinterFontHandle : IPrinterService
{
    string GetFontFamily();

    void SetAbsolutePath(string absoluteFilePath);
}

IReceiptPrinting

The interface is inherited, if PED can receive a list of LS Pay's ReceiptLine objects.

Copy
public interface IReceiptPrinting : IPrinterService
{
    Task<bool> PrintAsync(List<ReceiptLine> printBuffer);
}

IReprint

If PED or a service can receive a reprint request, they will inherit the IReprint interface.

IReprintLast

The reprint request will trigger the last successful receipt to be printed.

Copy
public interface IReprintLast : IReprint
{
    Task PrintAsync();
}

IReprintReceipt

The PED can receive a request indicating what receipt to print by a unique ID supplied with the successful response from LS Pay.

Copy
public interface IReprintReceipt : IReprint
{
    Task PrintAsync(TransactionIdentification ids);
}