References
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
OtplessPhoneHint in the onCreate() of your Activity.kt file.import com.otpless.v2.android.sdk.main.OtplessPhoneHint;
OtplessPhoneHint.register(this)
import com.otpless.v2.android.sdk.main.OtplessPhoneHint;
OtplessPhoneHint.INSTANCE.register(this);
show() method of OtplessPhoneHint whenever required.import com.otpless.v2.android.sdk.main.OtplessPhoneHint
OtplessPhoneHint.show(activity) { phoneHintResponse ->
if (!phoneHintResponse.phoneNumber.isNullOrBlank()) {
// Use phone number
} else {
// Handle error:
val errorMessage = phoneHintResponse.error
}
}
import com.otpless.v2.android.sdk.main.OtplessPhoneHint;
OtplessPhoneHint.INSTANCE.show(activity, phoneHintResponse -> {
if (phoneHintResponse.getPhoneNumber() != null && !phoneHintResponse.getPhoneNumber().isEmpty()) {
// Use phone number
} else {
// Handle error
String errorMessage = phoneHintResponse.getError();
}
});