setCaptchaChallengeListener( ISMPCaptchaChallengeListener ) method

Set the CAPTCHA challenge listener in case of CAPTCHA enabled by the SAP Mobile Server.

Syntax

void setCaptchaChallengeListener ( ISMPCaptchaChallengeListener captchaListener )

Parameters

Examples

Usage

User has to implement the ‘IODPCaptchaChallengeListener’ and set it using the above listener to get the captcha callback. 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.