onSubscribePrivilegeTokenWillExpire property
@detail callback
@author qipengxiang
@brief Callback triggered 30s before the subscribing privilege of the Token expires.
After receiving this callback, you must call updateToken{@link #RTSRoom#updateToken} to update the subscribing privilege Token.
@note After a user's subscribing privilege expires, the user will fail to subscribe to new streams, or the subscribed streams will be removed, and he/she will receive onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}, onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} with error code "-1003" indicating no permission to subscribe to streams.
Implementation
FutureOr<void> Function()? onSubscribePrivilegeTokenWillExpire;