updateUsingHttpsOnlySetting method
- bool usingHttpsOnly
是否只用 HTTPS。
Param usingHttpsOnly
是否只用 HTTPS。
Implementation
Future<void> updateUsingHttpsOnlySetting(bool usingHttpsOnly) async {
Map req = {'usingHttpsOnly': usingHttpsOnly};
Map result = await ClientChannel.invokeMethod(
ChatMethodKeys.updateUsingHttpsOnlySetting, req);
try {
EMError.hasErrorFromResult(result);
_options = _options?.copyWith(usingHttpsOnly: usingHttpsOnly);
} on EMError catch (e) {
throw e;
}
}