SBSDKUIWorkflowStep WithResults(SBSDKUIWorkflowStep step, SBSDKUIWorkflowStepResult[] results)
        {
            if (results.Length >= 2)
            {
                return(null);
            }

            if (results.Length >= 1 && results[0].CapturedPage != null)
            {
                return(WorkflowFactory.QrCodeStep());
            }
            else
            {
                return(WorkflowFactory.DocumentStep());
            }
        }
        void ShowWorkflowSelector()
        {
            UIAlertController actionSheetAlert = UIAlertController.Create("Select a workflow", "", UIAlertControllerStyle.ActionSheet);

            foreach (var workflow in WorkflowFactory.AllWorkflows())
            {
                UIAlertAction action = UIAlertAction.Create(workflow.Name, UIAlertActionStyle.Default, (actn) =>
                {
                    this.ShowWorkflow(workflow);
                });

                actionSheetAlert.AddAction(action);
            }

            this.PresentViewController(actionSheetAlert, true, null);
        }