setCallbackConnectionInitiated method

void setCallbackConnectionInitiated(
  1. String callbackId,
  2. dynamic callbackConnectionInitiated(
    1. Device
    )
)

Sets callbackConnectionInitiated callback that executes every time a connection is initiated.

Implementation

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