public class DoubleOptinSmsUserValidation extends Object
Constructor and Description |
---|
DoubleOptinSmsUserValidation(Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
onReceiveSmS(com.pushtech.sdk.Sms sms)
This functions call automatically when device receive a one sms.
|
void |
requestSecretCode(DoubleOptinVerifyRequestModel doubleOptin,
GenericCallback callback) |
void |
requestSecretCode(String phoneNumer,
String phoneCode,
GenericCallback callback) |
void |
setAutomaticUserValidationCallback(AutomaticUserValidationCallback automaticUserValidationCallback)
This function sets a listener to notify when the sms detects automatically.
|
void |
validationRequestCode(String secretCode,
GenericCallback callback)
This function validates the sms validation code.
|
public void setAutomaticUserValidationCallback(AutomaticUserValidationCallback automaticUserValidationCallback)
automaticUserValidationCallback
- public void requestSecretCode(DoubleOptinVerifyRequestModel doubleOptin, GenericCallback callback)
public void requestSecretCode(String phoneNumer, String phoneCode, GenericCallback callback)
public void validationRequestCode(String secretCode, GenericCallback callback)
secretCode
- string that contains a secret code received in sms.callback
- If the callback call success method the code is correct.
If callback call error method the code is incorrect.public void onReceiveSmS(com.pushtech.sdk.Sms sms)
sms
- user received in device.