Skip to main content

Configure your SDK

There are many configuration parameters on Diyalog. You can see the detailed information about the parameters.
Settings with asteriks* are required configuration to run the sdk.

* Server EndPoint#

Your Diyalog server address that app will communicate

DiyalogEngine.diyalogInstance().endpoints = ["wss://<YOUR_DIYALOG_SERVER_ENDPOINT_ADDRESS>"]

* API App Id and API App Key#

They are used for authenticating application on server.

DiyalogEngine.diyalogInstance().apiId = <YOUR_APP_API_ID>
DiyalogEngine.diyalogInstance().apiKey = "<YOUR_APP_API_KEY>"

Trusted Keys#

These are the trusted public keys created on your Diyalog Server. These will use in creation session keys between clients and server.

DiyalogEngine.diyalogInstance().trustedKeys = [
"<YOUR_DIYALOG_ENVIRONMENT_PUBLIC_KEY_1>",
"<YOUR_DIYALOG_ENVIRONMENT_PUBLIC_KEY_2>",
"<YOUR_DIYALOG_ENVIRONMENT_PUBLIC_KEY_3>",
"<YOUR_DIYALOG_ENVIRONMENT_PUBLIC_KEY_4>",
"<YOUR_DIYALOG_ENVIRONMENT_PUBLIC_KEY_5>",
"<YOUR_DIYALOG_ENVIRONMENT_PUBLIC_KEY_6>"
]

App Name#

Your application name. This will be used in some screens in Diyalog SDK. If it is not set. "Diyalog" name will appear some screen instead of your app name.

DiyalogEngine.diyalogInstance().setappName("<YOUR_APP_NAME>")

Application language#

You can change sdk language whenever by setting this.

DiyalogEngine.diyalogInstance().setLocalizationLanguage(.turkish)

Push Id#

If you enable notification. You should set your push id that is given by server administrator.

DiyalogEngine.diyalogInstance().apiPushId = 111111

Call enabled#

This flag will enabled voice and video calls. Default is false.

DiyalogEngine.diyalogInstance().setenableCalls(true)

Back button enabled#

This flag will enabled back button on DiyalogSDK and user can return to your app after use Diyalog. Default is false.

DiyalogEngine.diyalogInstance().setisSupportBackButton(true)

Supported file type to share#

You can set file types that user can share.

DiyalogEngine.diyalogInstance().fileSupport = [.music, .picture, .doc, .spreadsheet, .video, .presentation, .pdf, .csv]