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:3.0.1'
in the dependencies section of the app-level build.gradle
file.android
section of the app level gradle file.
init()
method initialises the settings required for CometChat. The init()
method takes the below parameters:
setRegion()
method.AppSettings
class allows you to configure three 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. |