STLimitedCameraManager
@interface STLimitedCameraManager : NSObject
The STLimitedCameraManager does the same camera and preview view setup as the STCameraManager but does not perform the image and frame processing required for the ScanTrust authentication. It is limited to checking the ownership of the code based on its content.
-
The object that acts as delegate for limited camera manager
Declaration
Objective-C
@property (readwrite, strong, nonatomic) id<STLimitedCameraManagerDelegate> delegate;
Swift
var delegate: STLimitedCameraManagerDelegate! { get set }
-
Returns the shared limited camera manager instance
Declaration
Objective-C
+ (STLimitedCameraManager *)sharedInstance;
Swift
class func sharedInstance() -> STLimitedCameraManager!
Return Value
The shared limited camera manager instance
-
Starts the underlying camera object, its preview and starts the ScanTrust frame processing.
Declaration
Objective-C
- (void)startScanning;
Swift
func startScanning()
-
Stops the preview and stops the ScanTrust frame processing.
Declaration
Objective-C
- (void)pauseScanning;
Swift
func pauseScanning()
-
Restarts the ScanTrust frame processing. Should be used when the frame processing has been paused. Note: this will not have an impact on the camera or its preview, but will restart the response flow.
Declaration
Objective-C
- (void)restartProcessing;
Swift
func restartProcessing()
-
Pauses the ScanTrust frame processing. This will pause the frame processing but camera and it’s preview view will not be stopped.
Declaration
Objective-C
- (void)pauseProcessing;
Swift
func pauseProcessing()
-
Turns the torch on or off depending on the value of turnOn .
Declaration
Objective-C
- (void)setCameraTorchModeOnOff:(BOOL)turnOn;
Swift
func setCameraTorchModeOnOff(_ turnOn: Bool)
Parameters
turnOn
A boolean value to turn on or off camera torch
-
Setup the camera with given preview and prepares ScanTrust frame processing
Declaration
Objective-C
- (void)setUpCameraSessionWithPreview:(STPreviewView *)previewView error:(NSError *)error;
Swift
func setUpCameraSessionWithPreview(_ previewView: STPreviewView!, error: Error!)
Parameters
previewView
The object of STPreviewView
error
If the camera fails to setup/prepare, upon return contains an instance of NSError that describes the problem.