How to access swift class in kotlin. Sample code given below. I'm working on KMM
public
*class* FirebaseRemoteConfigurations {
*var* remoteConfig: RemoteConfig!
*func* initializeRemoteConfig() {
remoteConfig = RemoteConfig.remoteConfig()
*let* settings = RemoteConfigSettings()
settings.minimumFetchInterval = 0
remoteConfig.configSettings = settings
}
*func* fetchConfig() {
*let* remoteConfigString = remoteConfig["application_configuration"].stringValue
// [START fetch_config_with_callback]
remoteConfig.fetch { (status, error) -> Void
in
*if* status == .success {
print("Config fetched!")
*self*.remoteConfig.activate { changed, error *in*
print(remoteConfigString)
}
} *else* {
print("Config not fetched")
print("Error: \(error?.localizedDescription ?? "No error available.")")
}
}
// [END fetch_config_with_callback]
}
}