SBSDKUIHealthInsuranceCardScannerViewController
@interface SBSDKUIHealthInsuranceCardScannerViewController
: SBSDKUICameraViewController
A view controller for camera-based detection of health insurance cards.
-
Creates a new instance of ‘SBSDKUIHealthInsuranceCardScannerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withConfiguration: (nonnull SBSDKUIHealthInsuranceCardScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIHealthInsuranceCardScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with configuration: SBSDKUIHealthInsuranceCardScannerConfiguration, andDelegate delegate: SBSDKUIHealthInsuranceCardScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
configuration
The configuration to define look and feel of the new detection view controller.
delegate
The delegate of the new detection view controller.
Return Value
A new instance of ‘SBSDKUIHealthInsuranceCardScannerViewController’.
-
Creates a new instance of ‘SBSDKUIHealthInsuranceCardScannerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUIHealthInsuranceCardScannerConfiguration *)configuration andDelegate: (nullable id< SBSDKUIHealthInsuranceCardScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUIHealthInsuranceCardScannerConfiguration, andDelegate delegate: SBSDKUIHealthInsuranceCardScannerViewControllerDelegate?) -> Self
Parameters
configuration
The configuration to define look and feel of the new detection view controller.
delegate
The delegate of the new detection view controller.
Return Value
A new instance of ‘SBSDKUIHealthInsuranceCardScannerViewController’.
-
Enables or disables the detection.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isRecognitionEnabled) BOOL recognitionEnabled;
Swift
var isRecognitionEnabled: Bool { get set }
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIHealthInsuranceCardScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIHealthInsuranceCardScannerViewControllerDelegate? { get set }