class ERTCApplication : Application () {
override fun onCreate() {
super.onCreate()
//Config builder
val config = Configuration.Builder()
.context(this)
.apiKey("your api key goes here")
.build()
// SDK initialize
eRTCSDK.initializeWithConfig(config)
}
}
import UIKit
import eRTC-SDK
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow? func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)
-> Bool {
eRTCApp.configure()
return true
}
}
// SDK initialize
new eRTCSDK().initialise ("com.ripbull.ertc");