Search in sources :

Example 1 with InvalidVisitorIDException

use of com.zoho.livechat.android.exception.InvalidVisitorIDException in project SalesIQ-Mobilisten-ReactNative by zoho.

the class RNZohoSalesIQ method registerVisitor.

@ReactMethod
public void registerVisitor(final String uniqueid) {
    Handler handler = new Handler(Looper.getMainLooper());
    handler.post(new Runnable() {

        public void run() {
            try {
                ZohoSalesIQ.registerVisitor(uniqueid);
            } catch (InvalidVisitorIDException e) {
                LiveChatUtil.log(e);
            }
        }
    });
}
Also used : InvalidVisitorIDException(com.zoho.livechat.android.exception.InvalidVisitorIDException) Handler(android.os.Handler) ReactMethod(com.facebook.react.bridge.ReactMethod)

Aggregations

Handler (android.os.Handler)1 ReactMethod (com.facebook.react.bridge.ReactMethod)1 InvalidVisitorIDException (com.zoho.livechat.android.exception.InvalidVisitorIDException)1