onSessionStateChanged method

  1. @internal
void onSessionStateChanged(
  1. SessionState sessionState
)

Internal method that shouldn't be visible

Implementation

@internal
void onSessionStateChanged(SessionState sessionState) {
  switch (sessionState) {
    case SessionState.starting:
    case SessionState.started:
    case SessionState.start_failed:
    case SessionState.ending:
    case SessionState.ended:
    case SessionState.resuming:
    case SessionState.resumed:
    case SessionState.resume_failed:
    case SessionState.suspended:
      _stateNotifier.value = sessionState;
      break;
    case SessionState.idle:
      // Not raised
      break;
  }
}