renewToken abstract method

Future<void> renewToken(
  1. String token
)

Gets a new token when the current token expires after a period of time. Passes a new token to the SDK. A token expires after a certain period of time. The app should get a new token and call this method to pass the token to the SDK. Failure to do so results in the SDK disconnecting from the server. The SDK triggers the tokenPrivilegeWillExpire callback. The connectionStateChanged callback reports TokenExpired(9).

Param token The new token.

Implementation

Future<void> renewToken(String token);