setCallbackPendingAcceptConnection method

void setCallbackPendingAcceptConnection(
  1. String callbackId,
  2. dynamic callbackPendingAcceptConnection(
    1. Device
    )
)

Sets callbackConnectionInitiated callback that executes every time a connection needs to be accepted.

Implementation

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