startSession method

ArgosDiagnosticSession startSession({
  1. String? label,
  2. String? note,
  3. Map<String, String> attributes = const <String, String>{},
})

Implementation

ArgosDiagnosticSession startSession({
  String? label,
  String? note,
  Map<String, String> attributes = const <String, String>{},
}) {
  if (_sessionState == ArgosSessionState.recording) {
    return _activeSession!;
  }
  if (_sessionState == ArgosSessionState.paused) {
    resumeSession();
    return _activeSession!;
  }

  return _startNewSession(
    now: _now(),
    automaticManaged: false,
    label: label,
    note: note,
    attributes: attributes,
  );
}