Events

class Events

Class for dispatching events to the snabble Backend

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun analytics(key: String?, value: String?, comment: String?)

Pack a analytics event and dispatch it to the backend

Link copied to clipboard
fun log(format: String?, vararg args: Any?)

Pack a log message into a event and dispatch it to the backend

Link copied to clipboard
fun logError(format: String?, vararg args: Any?)

Pack a error log message into a event and dispatch it to the backend

Link copied to clipboard
fun productNotFound(scannedCodes: List<ScannedCode>?)

Dispatch a product not found event

Link copied to clipboard
fun updateShop(newShop: Shop?)

Updates the current shop which will be associated with future events