Otpless class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
checkSimBindingStatus ()
→ Future <bool >
clearSimBinding ()
→ Future <void >
closeDialogIfOpen ()
→ Future <void >
commitResponse (dynamic response )
→ Future <void >
getActiveSession ()
→ Future <Map <String , dynamic > >
getPlatformVersion ()
→ Future <String ? >
initialize (String appId , {OtplessSslPinning sslPinning = OtplessSslPinning.disabled , String ? loginUri , Map <OtplessConfigKey , String > config = const {} })
→ Future <void >
Initialises the native OTPLESS SDK for appId.
initSession (String appId )
→ Future <void >
initTrueCaller (OtplessTruecallerRequest ? request )
→ Future <bool >
isSdkReady ()
→ Future <bool >
isWhatsAppInstalledForAndroid ()
→ Future <bool >
logoutSession ()
→ Future <void >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerSimBindingMonitor ()
→ Future <bool >
Starts watching for SIM changes so a removed bound SIM is reported to
the setSimBindingMonitorCallback callback. Returns true if the
monitor is registered. Android only; returns false on iOS.
sendUserAuthEvent (AuthEvent event , bool fallback , ProviderType providerType , {Map <String , dynamic > ? providerInfo })
→ Future <bool >
setDevLogging (bool isEnabled )
→ Future <void >
setMfaEnabled (bool enabled )
→ Future <void >
setResponseCallback (OtplessResultCallback callback )
→ Future <void >
setSimBindingEnabled (bool enabled )
→ Future <void >
setSimBindingMonitorCallback (OtplessSimBindingMonitorCallback ? callback )
→ Future <void >
Sets the callback for SIM binding state changes, see SimBindingState .
Pass null to remove it. Android only; no-op on iOS.
start (OtplessResultCallback callback , Map <String , dynamic > jsonObject )
→ Future <void >
startInBackground (OtplessResultCallback callback , Map <String , dynamic > jsonObject )
→ Future <void >
startOnetap (OtplessResultCallback callback , OtplessAuthConfig config )
→ Future <bool >
toString ()
→ String
A string representation of this object.
inherited
unregisterSimBindingMonitor ()
→ Future <void >
Stops the SIM change monitor started by registerSimBindingMonitor .
Android only; no-op on iOS.
otpless_headless_flutter 3.2.0