onNotification

abstract fun onNotification(action: suspend T.(Notification) -> Transformation)

Sets up a Transformation when a Notification is received from a RemoteCharacteristic.

Parameters

action

the Transformation to apply when a Notification is received. Contains the received Notification.