Enabling CAPTCHA

Enable CAPTCHA during registration.

Sets the CAPTCHA Challenge Listener in case of captcha enabled by the SMP cloud. User has to implement the ‘ISMPCaptchaChallengeListener’ and set it using the above listener to get the captcha call back.

Syntax

Use setCaptchaChallengeListener to enable CAPTCHA challenge for registration.
public void setCaptchaChallengeListener (ISMPCaptchaChallengeListener captchaListener) 

Returns

The callback method ‘validateCaptcha’ has to return the captcha text for registering the user. Alternately, it can also return ‘null’ in which case, the captcha text has to be stored by the application and a subsequent registerUser(captchaText, isSynchronous) has to be explicitly called.

Examples