toggle menu
snabble Android SDK API Documentation
androidJvm
switch theme
search in API
core
/
io.snabble.sdk.encodedcodes
/
EncodedCodesGenerator
Encoded
Codes
Generator
open
class
EncodedCodesGenerator
Class for encoding scanned codes into one or multiple combined codes (e.g. a QR-Code)
Members
Constructors
Encoded
Codes
Generator
Link copied to clipboard
constructor
(
encodedCodesOptions
:
EncodedCodesOptions
)
Types
Product
Info
Link copied to clipboard
@
RestrictTo
(
value
=
RestrictTo.Scope.LIBRARY
)
open
inner
class
ProductInfo
Functions
add
Link copied to clipboard
open
fun
add
(
shoppingCart
:
ShoppingCart
)
Add a shopping cart and all its products to the encoded code
open
fun
add
(
code
:
String
)
Add a arbitrary code to the encoded code generator
clear
Link copied to clipboard
open
fun
clear
(
)
Clears the encoded codes generator
generate
Link copied to clipboard
open
fun
generate
(
)
:
ArrayList
<
String
>
Generate a list of encoded codes Supported placeholders: {qrCodeCount}: Number of encoded codes {qrCodeIndex}: Current index
open
fun
generate
(
checkoutId
:
String
)
:
ArrayList
<
String
>
Generate a list of encoded codes, including adding the checkout id if supported.