interface StreamHandler<T : Any>
(source)
abstract fun onMessage(item: T): Unit
Handles a new item from the result stream. |
|
abstract fun onStreamEnd(): Unit
Invoked when the stream has been closed. |
|
abstract fun onStreamError(ex: Exception): Unit
Invoked when there is an error in the stream. |