onSubtitleStateChanged property

FutureOr<void> Function(SubtitleState state, SubtitleErrorCode errorCode, String errorMessage)? onSubtitleStateChanged
getter/setter pair

@detail callback @author qiaoxingwang @brief 字幕状态发生改变回调。
当用户调用 startSubtitle{@link #RTCRoom#startSubtitle} 和 stopSubtitle{@link #RTCRoom#stopSubtitle} 使字幕状态发生改变或字幕任务出现错误时,触发该回调。 @param state 字幕状态。参看 SubtitleState{@link #SubtitleState}。 @param errorCode 字幕任务错误码。参看 SubtitleErrorCode{@link #SubtitleErrorCode}。 @param errorMessage 与第三方服务有关的错误信息。

Implementation

FutureOr<void> Function(SubtitleState state, SubtitleErrorCode errorCode,
    String errorMessage)? onSubtitleStateChanged;