loginAuthSyncApi2 method
void
loginAuthSyncApi2({
- required bool autoDismiss,
- int timeout = 10000,
- bool enableSms = false,
- JVLoginAuthCallBackListener? loginAuthcallback,
- JVAuthPageEventListener? pageEventCallback,
Implementation
void loginAuthSyncApi2(
{required bool autoDismiss,
int timeout = 10000,
bool enableSms = false,
JVLoginAuthCallBackListener? loginAuthcallback,
JVAuthPageEventListener? pageEventCallback}) {
print("$flutter_log" + "loginAuthSyncApi");
String method = "loginAuthSyncApi";
var repeatError = isRepeatRequest(method: method);
if (repeatError == null) {
_eventHanders.loginAuthIndex++;
var map = {
"autoDismiss": autoDismiss,
"timeout": timeout,
"enableSms": enableSms,
"loginAuthIndex": _eventHanders.loginAuthIndex
};
if (loginAuthcallback != null) {
_eventHanders.loginAuthCallBackEventsMap[_eventHanders.loginAuthIndex] =
loginAuthcallback;
}
if (pageEventCallback != null) {
_eventHanders.authPageEventsMap[_eventHanders.loginAuthIndex] =
pageEventCallback;
}
_channel.invokeMethod(method, map);
requestQueue.remove(method);
} else {
print("$flutter_log" + repeatError.toString());
}
}