Skip to main content

initial_mode_state

Function initial_mode_state 

Source
fn initial_mode_state(
    init_record: Option<&Map<String, Value>>,
    launch_settings_record: Option<&Map<String, Value>>,
    supports_auto_mode: bool,
) -> ModeState
Expand description

The Connected payload’s mode state: the launch-time mode read from the init record, falling back to the launch settings’ stamped defaultMode, with bypass offered only when the session launched into it.