setUserToken method

Future<void> setUserToken(
  1. String userToken
)

Updates the user token (JWT).

The SDK expects this function to be called before executing the start function, otherwise the collected data won't be able to be transmitted.

Implementation

Future<void> setUserToken(String userToken) async {
  await _channel.invokeMethod('setUserToken', {'userToken': userToken});
}