setTranslationLanguage method
Set the translation language of the current user.
This allows captions to be generated and translated into the current user's selected translation language.
You can retrieve a list of available translation languages by calling getAvailableTranslationLanguages() above and set with its languageID.
The default translation language is English.
languageID
The translation language ID. If the language id is set to -1, live translation will be disabled.
Return ZoomVideoSDKError_Success
if the function succeeds. Otherwise, this function returns an error.
Implementation
@override
Future<String> setTranslationLanguage(num languageID) async {
var params = <String, dynamic>{};
params.putIfAbsent("languageID", () => languageID);
return await methodChannel
.invokeMethod<String>('setTranslationLanguage', params)
.then<String>((String? value) => value ?? "");
}