onPublishPrivilegeTokenWillExpire property

FutureOr<void> Function()? onPublishPrivilegeTokenWillExpire
getter/setter pair

@detail callback @author qipengxiang @brief Callback triggered 30s before the publishing privilege of the Token expires.
After receiving this callback, you must call updateToken{@link #RTSRoom#updateToken} to update the publishing privilege Token. @note Once a user's publishing privilege expires:
- Either during stream publishing or when attempting to publish a stream, the user will get the notification of kPublishStateChangeReasonNoPublishPermission via onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}, onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged}. - The publishing streams of the user will be removed, and remote users in the room will get informed via onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}, onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio}.

Implementation

FutureOr<void> Function()? onPublishPrivilegeTokenWillExpire;