build.gradle
file in the repositories
block under the allprojects
section:
build.gradle
file in the dependencies
section.
implementation 'com.cometchat:pro-android-calls-sdk:2.1.1'
in the dependencies section of the app-level build.gradle
file.android
section of the app level gradle file.
init()
method initializes the settings required for CometChat.
The init()
method takes the below parameters:
context
- Application Context of the Android app.appId
- You CometChat App IDappSettings
- An object of the AppSettings
class can be created using the AppSettingsBuilder
class.AppSettings
class allows you to configure two settings:
init()
method on app startup.
Parameter | Description |
---|---|
this | Android context for your application |
appID | CometChat App ID |
appSetting | An object of the AppSettings class. |