com.getsensibill.core / TransactionDataObserver
TransactionDataObserver
interface TransactionDataObserver
Observer to monitor Receipt Upload Transactions that occur inside of the Sensibill SDK
To monitor transactions, add an implementation of TransactionDataObserver to the Sensibill SDK
SensibillSDK.addTransactionDataObserver(object : TransactionDataObserver {
override fun notify(transaction: Transaction) {
// Observer upload transaction
}
})
Functions
Name | Summary |
---|---|
notify | abstract fun notify(transaction: Transaction ): Unit Called when state of an receipt upload has changed |
Companion Object Functions
Name | Summary |
---|---|
fromLambda | fun fromLambda(lambda: (transaction: Transaction ) -> Unit ): TransactionDataObserver Convenience function to create a TransactionDataObserver implementation using a lambda |