stopSubtitle method
@hidden currently not available
@detail api
@author qiaoxingwang
@brief Turns off subtitles.
After calling this method, you will receive the onSubtitleStateChanged{@link #IRTCRoomEventHandler#onSubtitleStateChanged} to inform you of whether subtitles are off.
@return
- 0: Success.
- < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details.
Implementation
Future<int?> stopSubtitle() async {
$a() => ($instance as $p_a.RTCRoom).stopSubtitle();
$i() => ($instance as $p_i.ByteRTCRoom).stopSubtitle();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}