IGPAPI
    Preparing search index...

    Function readMethodPickerPreselectedMethod

    • The method the method-picker response preselects, read from the parsed screen layout (the initial value of the state node it submits as selected_method). Returns the method only when the response names exactly one; a response that names none or several is left for the caller as undefined.

      Reads the raw layout instead of the transport-parsed payload, and cannot do otherwise: the preselected method is a screen-local-state initial (layout.bloks_payload.data[].data.initial), which the extractor does not carry — dicts holds only the action parameter maps, and ast keeps just the executable tree, where the picker reads the state variable (dnt) and never its initial value (the initial key is absent from ast). The value is reachable only through the layout, exactly as the AAC global-state reader (readAacGlobalState) documents for its own key.

      Parameters

      Returns TwoFactorBloksMethod | undefined