onSubtitleStateChanged property

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

@hidden currently not available @detail callback @author qiaoxingwang @brief Callback on subtitle states.
After you call startSubtitle{@link #RTCRoom#startSubtitle} and stopSubtitle{@link #RTCRoom#stopSubtitle}, you will receive this callback which informs you of the states and error codes of the subtitling task, as well as detailed information on the third party services' errors. @param state The states of subtitles. Refer to SubtitleState{@link #SubtitleState} for details. @param errorCode Error codes of the subtitling task. Refer to SubtitleErrorCode{@link #SubtitleErrorCode}. @param errorMessage Detailed information on the third party services' errors.

Implementation

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