Select your printer model

Parameters are refined by the selected printer.

endTransaction


Ends a transaction.

A transaction represents a single printing task such as printing a single sheet of receipt or coupon.

After beginTransaction is called, data until the transaction is terminated by this API will be regarded as a single printing task.

Syntax

 
- (int) endTransaction;

Return value

If the process succeeds, EPOS2_SUCCESS will be returned.

If the process fails, one of the following values be returned.

Error status

Description

EPOS2_ERR_ILLEGAL

This API was called while no communication had been started.

This API was called while no transaction had been started.

EPOS2_ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • This API is not executed on the main thread. Execute it on the sub-thread.
  • Do not execute this API during the period from paper insertion through paper eject during slip, endorsement, validation, and MICR control.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for iOS

Jump to the top