Learn how to collect and handle user inputs during the placement flow
Muta allows you to collect user inputs during the placement flow, including text inputs and multiple choice selections. These inputs are automatically collected and made available when the flow completes.
struct MultipleChoiceInput { let screenIndex: Int let screenName: String let isRequired: Bool let selections: [Selection]}struct Selection { let choiceText: String let choiceIndex: Int}
The userInputFinal event provides a comprehensive structure of all collected inputs:
Copy
struct UserInputFinalEvent: MutaEvent { let timestamp: Int let placementId: String let flowName: String? let userInputs: UserInputs}struct UserInputs { let multipleChoices: [MultipleChoiceInput] let textInputs: [TextInput]}