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);
After you have logged in successfully, you can launch CometChat by using LaunchCometChat() function. The syntax is as follows:
LaunchCometChat(Activity activity,ICallbacks callback);
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)
Not finding what you need?
The CometChat team is here to help!