activate method

Future<void> activate()

Transitions a session from pending or authorizing to active, allowing frames to start streaming. In order to activate a session, some conditions must be met:

  1. it must be in pending or authorizing state
  2. an agent must have joined

Throws a PlatformException if the session cannot be activated (e.g. no network).

Implementation

Future<void> activate() async {
  Map activatedSession = await CobrowseIO.instance._activateSession(this);
  _fill(activatedSession);
}