MethodChannelOtplessFlutter class

An implementation of OtplessFlutterPlatform that uses method channels.

Inheritance

Properties

eventChannel → EventChannel
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkSimBindingStatus() → Future<bool>
clearSimBinding() → Future<void>
closeDialogIfOpen() → Future<void>
commitResponse(dynamic response) → Future<void>
getActiveSession() → Future<Map<String, dynamic>>
getPlatformVersion() → Future<String?>
inherited
initialize(String appId, {OtplessSslPinning sslPinning = OtplessSslPinning.disabled, String? loginUri}) → Future<void>
Initialises the native SDK. See Otpless.initialize for the semantics of sslPinning and loginUri.
override
initSession(String appId) → Future<void>
initTrueCaller(OtplessTruecallerRequest? request) → Future<bool>
isSdkReady() → Future<bool>
isWhatsAppInstalled() → Future<bool>
logoutSession() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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>
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

Operators

operator ==(Object other) → bool
The equality operator.
inherited