ripe / com.ripe.android.base / ObservableCallback

ObservableCallback

typealias ObservableCallback = (args: Map<String, Any>) -> Deferred<Any?>?

A function to be executed when an event. It receives a dictionary with the response as parameter and returns a deferred result which is completed asynchronously.

Parameters

args - A dictionary with the payload of the event

Return
A Deferred that may be completed asynchronously