getCurrentSessionId method

  1. @override
Future<String?> getCurrentSessionId()
override

Get the ID for the current session.

Returns null if a session has not been started yet or the SDK hasn't been initialized.

Implementation

@override
Future<String?> getCurrentSessionId() async {
  return _runCatchingAndReturn<String?>(
    'getCurrentSessionId',
    () => _platform.getCurrentSessionId(),
    defaultValue: null,
  );
}