setCallbackConnectionRejected method

void setCallbackConnectionRejected(
  1. String callbackId,
  2. dynamic callbackConnectionRejected(
    1. Device
    )
)

Sets callbackConnectionRejected callback that executes every time a connection is rejected.

Implementation

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