getSessionId method

  1. @override
Future<int?> getSessionId()
override

Retrieves the current session ID.

Returns the current session ID as an int, or null if no session is currently active.

This method allows you to access the current session identifier.

Implementation

@override
Future<int?> getSessionId() async {
  return await _platformChannel.invokeMethod("getSessionId") as int?;
}