setCallbackConnectionRejected method
void
setCallbackConnectionRejected()
Sets callbackConnectionRejected callback that executes every time a connection is rejected.
Implementation
void setCallbackConnectionRejected(
String callbackId, Function(Device) callbackConnectionRejected) {
this.callbackConnectionRejected[callbackId] = callbackConnectionRejected;
}