renewToken method
- String roomID,
- String token
Renew token.
Available since: 2.8.0 Description: After the developer receives onRoomTokenWillExpire, they can use this API to update the token to ensure that the subsequent RTC functions are normal. Use cases: Used when the token is about to expire. When to call /Trigger: After the developer receives onRoomTokenWillExpire. Restrictions: None. Caution: The token contains important information such as the user's room permissions, publish stream permissions, and effective time, please refer to https://docs.zegocloud.com/article/11649. Related callbacks: None. Related APIs: None.
roomID
Room ID.token
The token that needs to be renew.
Implementation
Future<void> renewToken(String roomID, String token) async {
return await ZegoExpressImpl.instance.renewToken(roomID, token);
}