private void StartWorkflow(Workflow workflow) { if (!CheckScanbotSDKLicense()) { return; } var config = new WorkflowScannerConfiguration(); config.SetIgnoreBadAspectRatio(true); var intent = WorkflowScannerActivity.NewIntent(this, config, workflow, new Dictionary <Java.Lang.Class, Java.Lang.Class>()); StartActivityForResult(intent, REQUEST_WORKFLOW); }
private async Task RunWorkflow(IWorkflow workflow) { var config = new WorkflowScannerConfiguration { IgnoreBadAspectRatio = true, BottomBarBackgroundColor = Color.Blue, }; var result = await SBSDK.UI.LaunchWorkflowScannerAsync(workflow, config); if (result.Status == OperationResult.Ok) { Results = result.Results?.Select(r => new ResultPresenter(r)).ToArray(); } }
async Task RunWorkflow(IWorkflow workflow) { var config = new WorkflowScannerConfiguration { IgnoreBadAspectRatio = true, }; var result = await SBSDK.UI.LaunchWorkflowScannerAsync(workflow, config); if (result.Status == OperationResult.Ok) { var results = result.Results; ViewUtils.Alert(this, "Result:", SDKUtils.ParseWorkflowResults(results)); foreach (var item in results) { // Not all StepResults contain a captured page, try to find the one that has it if (item.CapturedPage != null) { Pages.Instance.List.Add(item.CapturedPage); } } } }