SBSDKUIWorkflowScannerViewController
@interface SBSDKUIWorkflowScannerViewController : SBSDKUICameraViewController
A View controller that processes a workflow.
-
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Not available.
Declaration
Objective-C
+ (nonnull instancetype)new;
-
Initializes a static workflow.
Declaration
Objective-C
+ (nullable instancetype) createNewWithWorkflow:(nonnull SBSDKUIWorkflow *)workflow configuration: (nonnull SBSDKUIWorkflowScannerConfiguration *)configuration delegate: (nullable id<SBSDKUIWorkflowScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with workflow: SBSDKUIWorkflow, configuration: SBSDKUIWorkflowScannerConfiguration, delegate: SBSDKUIWorkflowScannerViewControllerDelegate?) -> Self?
Parameters
workflow
The static workflow that should be processed.
configuration
The configuration object.
delegate
The delegate.
-
Initializes and presents a workflow scanner view controller with a static workflow.
Declaration
Objective-C
+ (nullable instancetype) presentOn:(nonnull UIViewController *)presenter workflow:(nonnull SBSDKUIWorkflow *)workflow configuration:(nonnull SBSDKUIWorkflowScannerConfiguration *)configuration delegate:(nullable id<SBSDKUIWorkflowScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, workflow: SBSDKUIWorkflow, configuration: SBSDKUIWorkflowScannerConfiguration, delegate: SBSDKUIWorkflowScannerViewControllerDelegate?) -> Self?
Parameters
presenter
The view controller that should present the workflow scanner view controller.
workflow
The static workflow that should be processed.
configuration
The configuration object.
delegate
The delegate.
-
Initializes a dynamic workflow.
Declaration
Objective-C
+ (nullable instancetype) createNewWithInitialWorkflowStep:(nonnull SBSDKUIWorkflowStep *)step configuration: (nonnull SBSDKUIWorkflowScannerConfiguration *) configuration datasource: (nonnull id< SBSDKUIWorkflowScannerViewControllerDatasource>) datasource delegate: (nullable id< SBSDKUIWorkflowScannerViewControllerDelegate>) delegate;
Swift
class func createNew(withInitialWorkflowStep step: SBSDKUIWorkflowStep, configuration: SBSDKUIWorkflowScannerConfiguration, datasource: SBSDKUIWorkflowScannerViewControllerDatasource, delegate: SBSDKUIWorkflowScannerViewControllerDelegate?) -> Self?
Parameters
step
The first step of the dynamic workflow.
configuration
The configuration object.
datasource
The datasource that delivers the following steps.
delegate
The delegate.
-
Initializes and presents a workflow scanner view controller with a dynamic workflow.
Declaration
Objective-C
+ (nullable instancetype) presentOn:(nonnull UIViewController *)presenter initialStep:(nonnull SBSDKUIWorkflowStep *)step configuration:(nonnull SBSDKUIWorkflowScannerConfiguration *)configuration datasource:(nonnull id<SBSDKUIWorkflowScannerViewControllerDatasource>) datasource delegate:(nullable id<SBSDKUIWorkflowScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, initialStep step: SBSDKUIWorkflowStep, configuration: SBSDKUIWorkflowScannerConfiguration, datasource: SBSDKUIWorkflowScannerViewControllerDatasource, delegate: SBSDKUIWorkflowScannerViewControllerDelegate?) -> Self?
Parameters
presenter
The view controller that should present the workflow scanner view controller.
step
The first step of the dynamic workflow.
configuration
The configuration object.
datasource
The datasource that delivers the following steps.
delegate
The delegate.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIWorkflowScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIWorkflowScannerViewControllerDelegate? { get set }
-
The receivers datasource.
Declaration
Objective-C
@property (nonatomic, weak, readonly, nullable) id<SBSDKUIWorkflowScannerViewControllerDatasource> datasource;
Swift
weak var datasource: SBSDKUIWorkflowScannerViewControllerDatasource? { get }
-
Resets the workflow and starts it again.
Declaration
Objective-C
- (void)resetWorkflow;
Swift
func resetWorkflow()