AI Integration Quick Reference
AI Integration Quick Reference
Integration
First, make sure that you’ve correctly integrated the UI Kit library into your project. If you haven’t done this yet or are facing difficulties, refer to our Getting Started guide. This guide will walk you through a step-by-step process of integrating our UI Kit into your Android project. Once you’ve successfully integrated the UI Kit, the next step is to add the CometChat Calls SDK to your project. This is necessary to enable the calling features in the UI Kit.Step 1: Add Calls SDK Dependency
Add the following dependency to yourbuild.gradle file:
Step 2: Verify Call Buttons Appear
Once the Calls SDK is integrated, you will see the CallButtons component automatically rendered in the MessageHeader component. This provides users with quick access to initiate audio and video calls.Step 3: Add Call Listener for Incoming Calls
To receive incoming calls globally in your app, you will need to add aCallListener. This should be added before you initialize the CometChat UI Kit. We recommend creating a custom Application class and adding the call listener there.
When an incoming call is received, you can display the CometChatIncomingCall component using the current activity context.
- Kotlin
- Java