Class ChoiceCallback

    • Constructor Detail

      • ChoiceCallback

        public ChoiceCallback​(org.json.JSONObject jsonObject,
                              int index)
                       throws org.json.JSONException
        Throws:
        org.json.JSONException
      • ChoiceCallback

        public ChoiceCallback()
    • Method Detail

      • setSelectedIndex

        public void setSelectedIndex​(int selection)
        Set the selected choice.

        Parameters:
        selection - the selection represented as an index into the choices list.
      • getType

        public java.lang.String getType()
        Description copied from interface: Callback
        Return the type of the Callback, the type name should align with the Callback type returned from AM
      • getChoices

        public java.util.List<java.lang.String> getChoices()
        Get the list of choices.

        Returns:
        the list of choices.
      • getDefaultChoice

        public int getDefaultChoice()
        Get the defaultChoice.

        Returns:
        the defaultChoice, represented as an index into the choices list.