renewToken abstract method
Updates the token.
This method is used to update the token. The token expires after a certain period, at which point the SDK cannot establish a connection with the server.
tokenThe newly generated token.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> renewToken(String token);