build.gradle
file in the repositories
block under the allprojects
section:
build.gradle
file in the dependencies
section.
init()
method initialises the settings required for CometChatCalls. Theinit()
method takes the below parameters:
context - Your activity context callAppSettings - An object of the CallAppSettings class can be created using the CallAppSettingBuilder class. The appId and region field is mandatory and can be set using the setAppId()
and setRegion()
method. The CallAppSettings
class allows you to configure three settings:
App ID: CometChat app ID. Region: The region where you app was created. Host(host: string): This method takes the client URL as input and uses this client URL instead of the default client URL. This can be used in case of dedicated deployment of CometChat. We suggest you call the init()
method on activity onCreate() method.
Parameter | Description |
---|---|
context | Android context for your application |
callAppSettings | An object of the CallAppSettings class |