OnValue

interface OnValue : Callback

Asynchronous callback wrapper for some methods of the Webcom API. This wrapper provides a callback method that is passed a JSONValue instance.

Functions

onError
Link copied to clipboard
abstract fun onError(error: WebcomError)

Called when an error happens

onValue
Link copied to clipboard
abstract fun onValue(value: JSONValue)

Called in case of succes, with a resulting JSONValue instance