Type Aliases
The following type aliases are available globally.
-
A function that when called will update the receipt button on the receipt screen with the specified
ReceiptState
.Declaration
Swift
public typealias UpdateReceiptProgress = (ReceiptState) -> Void
-
A function that when called will update the printing status and navigation with the specified
PrintState
.Declaration
Swift
public typealias UpdatePrintProgress = (PrintState) -> Void
-
A function that is called when the YocoSDK is dismissed that will provide you with the result of the payment and other info.
Declaration
Swift
public typealias YocoCompletionHandler<T> = (T) -> Void