onRead

abstract fun onRead(action: T.(Response, Trigger) -> Transformation)

Sets up a Transformation when a Response is read from a RemoteAttribute.

Parameters

action

the Transformation to apply when a Response is received. Contains the Trigger that caused the RemoteAttribute to be read and the Response that was read.