authenticateWithAPIKey method

Future<void> authenticateWithAPIKey(
  1. String key
)

Initiates a connection to the Empatica backend using an API key given by Empatica.

The EmpaStatus.ready status will be thrown on the statusEventSink when the authentication is accepted.

Implementation

Future<void> authenticateWithAPIKey(String key) async {
  await _methodChannel.invokeMethod('authenticateWithAPIKey', {'key': key});
}