Build SDK dependencies
private fun initDependencyInjection() {
val accountType = getString(R.string.app_account_type) // specify account time
val contactMimeType = getString(R.string.app_contact_mimetype) // contact mime type
val appScheme = getString(R.string.app_data_scheme) // data scheme prefix
val appHost = getString(R.string.app_data_host) // data host prefix
// see example project for all the parameters
SdkManager.init(
application = this,
accountType = accountType,
contactMimeType = contactMimeType,
appHost = appHost,
appScheme = appScheme,
mediaDirName = "MediaDirName",
messagesSettings = getMessagesSettings(),
mtEndpointsContext = getMtEndpointsContext(),
authorizationExtractor = SessionAuthorizationExtractorImpl(),
mtProtoKeysProvider = getMtProtoKeysProvider(),
callsEnabled = true|false,
meetingsEnabled = false|false
)
}Last updated
