Search in sources :

Example 1 with InvalidEmailException

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

the class RNZohoSalesIQ method setOperatorEmail.

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

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

Aggregations

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