Package-level declarations

Types

Link copied to clipboard
@ObjCName(name = "TeyaAlign", exact = true)
enum Align : Enum<Align>

Align represents the horizontal alignment of a UI element such as text, images, or QR codes.

Link copied to clipboard
@ObjCName(name = "TeyaGatewayPaymentId", exact = true)
data class GatewayPaymentId(val id: String) : GatewayTransactionId

GatewayTransactionId for a payment.

Link copied to clipboard
@ObjCName(name = "TeyaGatewayRefundId", exact = true)
data class GatewayRefundId(val id: String) : GatewayTransactionId

GatewayTransactionId for a refund.

Link copied to clipboard
@ObjCName(name = "TeyaGatewayTransactionId", exact = true)
sealed interface GatewayTransactionId

Id coming from Teya Payments Gateway for a given transaction. Can be GatewayPaymentId or GatewayRefundId.

Link copied to clipboard

Type of the integration.

Link copied to clipboard
@ObjCName(name = "TeyaReceiptRow", exact = true)
sealed interface ReceiptRow

Supertype of all row types.

Link copied to clipboard
@ObjCName(name = "TeyaRowElement", exact = true)
sealed interface RowElement

Represents a row element that can be part of a receipt row. It serves as the supertype for the different types of elements that can be displayed in a receipt, such as text, images, or QR codes.

Link copied to clipboard
@ObjCName(name = "TeyaTableHeaderCell", exact = true)
data class TableHeaderCell(val element: RowElement.Text, val weight: Float = 1.0f)

Represents a header cell in a table layout for defining a receipt structure.

Link copied to clipboard
@ObjCName(name = "TeyaTableRow", exact = true)
data class TableRow(val cells: List<RowElement.Text>)

Represents a row within a table in a receipt. Each row consists of a list of text elements that serve as its cells.

Link copied to clipboard
@ObjCName(name = "TeyaTemplate", exact = true)
data class Template(val rows: List<ReceiptRow>)

Model for a receipt template. It defines a structure of ReceiptRow that is rendered from top to bottom.

Functions

Link copied to clipboard
fun create(uiImage: UIImage): Image

Creates a Teya SDK Image from a UIImage.

Link copied to clipboard
fun Image(bitmap: Bitmap): Image

Creates a Teya Image from a Bitmap.

fun Image(uiImage: UIImage): Image
fun Image(file: File): Image

Creates an instance of an Image using the provided file.