[-100035]The package you purchased does not support this ability. Please purchase the package appears during voice or video call?let jsonParams: [String: Any] = ["api": "forceUseV2API","params": ["enable": true,],]guard let data = try? JSONSerialization.data(withJSONObject: jsonParams, options: JSONSerialization.WritingOptions(rawValue: 0)) else { return }guard let paramsString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as? String else { return }TUICallKit.createInstance().callExperimentalAPI(jsonStr: paramsString)
NSDictionary *jsonParams = @{@"api": @"forceUseV2API",@"params": @{@"enable": @YES}};NSError *error = nil;NSData *data = [NSJSONSerialization dataWithJSONObject:jsonParams options:0 error:&error];if (error || !data) { return; }NSString *paramsString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];if (!paramsString) { return;}[[TUICallKit createInstance] callExperimentalAPIWithJsonStr:paramsString];
try {JSONObject params = new JSONObject();params.put("enable", true);JSONObject jsonObject = new JSONObject();jsonObject.put("api", "forceUseV2API");jsonObject.put("params", params);TUICallKit.createInstance(context).callExperimentalAPI(jsonObject.toString());} catch (Exception e) {e.printStackTrace();}
try {val params = JSONObject()params.put("enable", true)val jsonObject = JSONObject()jsonObject.put("api", "forceUseV2API")jsonObject.put("params", params)TUICallKit.createInstance(context).callExperimentalAPI(jsonObject.toString())} catch (e: Exception) {e.printStackTrace()}
final jsonParams = {'api': 'forceUseV2API','params': {'enable': true} };try {final jsonString = json.encode(jsonParams);TUICallKit.instance.callExperimentalAPI(jsonStr: jsonString);} catch (e) {return;}
const jsonObject = {api: "forceUseV2API",params: {enable: true,}};TUICallKitServer.getTUICallEngineInstance().callExperimentalAPI(JSON.stringfy(jsonObject));
Feedback