Snabble
The heart of the snabble SDK. Initialization and object access is provided via this facade.
Types
Properties
Returns additional metadata that may be provided for apps unrelated to the SDK
The main Android application
The current checked in project.
Sets the shop used for receiving store specific prices and identification in the payment process
Location manager for use with the check in manager
Geo-fencing based check in manager. Use for automatically detecting if you are in a shop.
Url to retrieve consent status of the user
Url to create a new app user
Weak reference to the current activity
Get the current checked in shop as a live data.
Set CustomProperty's to override the default behavior.
The current endpoint base url used by the SDK
The environment the SDK is using.
Get the error during initialization of the SDK occurred
Set to have PAYONE forms prefilled with the given data.
Url for generating payone web form authentication challenges
The current initialization state of the SDK. Fragments observe this state and only if the SDK is initialized will get displayed to the user.
The internal storage directory in which snabble stores files
Set to take control over ShoppingCart.Item.isMergeable default behavior.
Returns true when the SDK is not compatible with the backend anymore and the app should notify the user that it will not function anymore.
The url where all the properties come from
OkHttpClient for general use.
List of certificates to match against user encrypted payment certificates. If those are not valid anymore, our backend is not able to decode the encrypted payment credentials anymore.
Add and retrieve local encrypted payment credentials
Url to retrieve receipts of the app user
Url for generating telecash web form authentication challenges
Url for generating telecash web form authentication challenges
Retrieve the link for our terms of service
Registry to retrieve and generate access tokens for backend api access
Local persisted user preferences
snabble SDK version name
Functions
Converts a relative url to a absolute url, depending on the environment.
Adds a listener that gets called every time the metadata updates
Finds a project by it's id
Removes an already added listener
Enables debug logging
Setup the snabble SDK.
The blocking version of .setup