setCallbackReceivedMessage method

void setCallbackReceivedMessage(
  1. String callbackId,
  2. dynamic callbackReceivedMessage(
    1. Device
    )
)

Sets callbackReceivedMessage callback that executes every time a device receives a message.

Implementation

void setCallbackReceivedMessage(
    String callbackId, Function(Device) callbackReceivedMessage) {
  this.callbackReceivedMessage[callbackId] = callbackReceivedMessage;
}