SBSDKUINFCPassportReaderViewController
@interface SBSDKUINFCPassportReaderViewController : SBSDKUICameraViewController
A ready-to-use viewcontroller component to scan the NFC chip of a passport and extract its information.
-
Creates a new instance of ‘SBSDKUINFCPassportReaderViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withConfiguration: (nonnull SBSDKUINFCPassportReaderConfiguration *)configuration andDelegate: (nullable id<SBSDKUINFCPassportReaderViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with configuration: SBSDKUINFCPassportReaderConfiguration, andDelegate delegate: SBSDKUINFCPassportReaderViewControllerDelegate?) -> 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 ‘SBSDKUINFCPassportReaderViewController’.
-
Creates a new instance of ‘SBSDKUINFCPassportReaderViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUINFCPassportReaderConfiguration *)configuration andDelegate: (nullable id<SBSDKUINFCPassportReaderViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUINFCPassportReaderConfiguration, andDelegate delegate: SBSDKUINFCPassportReaderViewControllerDelegate?) -> 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 ‘SBSDKUINFCPassportReaderViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUINFCPassportReaderViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUINFCPassportReaderViewControllerDelegate? { get set }