onTokenWillExpire property

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

@detail callback @author shenpengliang @brief The callback is triggered when the SDK detects the joining room privilege from the Token will expires within 30s. After receiving this callback, you must call updateToken{@link #RTSRoom#updateToken} to update the joining room privilege Token. @note After a user's joining room privilege expires:
- When attempting to join a room, the user will receive onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} with the error code "-1000" indicating that the Token is invalid. - If the user is already in the room, he/she will be removed from the room and receive onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} with the error code "-1009" indicating that the Token is expired. Remote users in the room will receive onUserLeave{@link #IRTCRoomEventHandler#onUserLeave} with the reason 1 indicating that the Token is invalid. @order 10

Implementation

FutureOr<void> Function()? onTokenWillExpire;