Skip to main content

3.3.3 Activation

The activation service is used to do activation of a new user. The activation may not be necessary in some settings. Figure below shows the usage of activation service in the example app. Please notice the usage of ICLActivationService and CLActivationHandler

Activation Flow
image 1

3.3.3.1 CLActivationHandler

CLActivationHandler is main class to do user activation and this doActivate this method as execution

void doActivate(String activationCode);

3.3.3.2 ICLActivationService

ICLActivationService is a protocol provided by ICLActivationHandler. It will return a response through delegate method whenever its success or error. Make sure that protocol is placed in class and set delegate from CLActivationHandler before sending the data.

If the activation success will get a response
onActivationSuccess(CLResponse response);

and if fail will get error response
onActivationError(CLErrorResponseerrorResponse);