Ready UI

After doing the initial setup, you can use the ReadyUI functions in your app.

Specify your url where you have installed CometChat by using SetUrl() function. The syntax is as follows:

SetUrl(Context context, String url, ICallbacks callbacks);



You can login to CometChat using Login() methods. The syntax is as follows:

Login(Context context, String username, String password, ICallbacks callback);

Launch CometChat
After you have logged in successfully, you can launch CometChat by using LaunchCometChat() function. The syntax is as follows:

LaunchCometChat(Activity activity,ICallbacks callback);

Launch chatwindow
If you want to launch the chat window of a specific user instead of launching whole CometChat then you can use the LaunchChatWindow() function. The syntax is as follow:

LaunchChatWindow(bool flag,Activity activity, String userid, ICallback callback)
  • flag: Its a boolean flag. If set to true, then you can navigate back to userlist. If set to false, then you can only view the chat window.
  • userid: Pass the userid of the user with whom you wish to chat

    Not finding what you need?

    The CometChat team is here to help!