moveTo method

void moveTo(
  1. XrSessionState state
)

Moves the session to state, as a runtime does on its own: a system menu over the app (XrSessionState.visible), the headset taken off (XrSessionState.lost).

Implementation

void moveTo(XrSessionState state) {
  _state = state;
  _states.add(state);
}