Protocols
The following protocols are available globally.
-
The delegate of GSKCameraSession must adopt the GSKCameraSessionDelegate protocol.
This protocol gives information about the state of the camera session, from configuration to snapping of photos.
There is no guarantee that these callbacks will be called on the main thread.
See moreDeclaration
Objective-C
@protocol GSKCameraSessionDelegate <NSObject>
Swift
protocol GSKCameraSessionDelegate : NSObjectProtocol
-
A interface for a logger object. Implement this to inject your own logger or use the default logger available in the SDK.
Declaration
Objective-C
@protocol GSKLogger
Swift
protocol GSKLogger
-
Used to preprocess pages of the PDF generation.
When you generate a PDF document from images, you may want to apply some preprocessing to each image before inserting them in the document (for instance resizing them, including a watermark, etc.) You can implement your own PDF_image_processor and pass it when generating a PDF document. to achieve this.
See moreDeclaration
Objective-C
@protocol GSKPDFImageProcessor
Swift
protocol GSKPDFImageProcessor
-
Defines a factory protocol that generates a scan object. You pass this factory to the GSKCameraSession so that it generates objects of type GSKScanProtocol as an output.
See moreDeclaration
Objective-C
@protocol GSKScanFactoryProtocol <NSObject>
Swift
protocol GSKScanFactoryProtocol : NSObjectProtocol
-
A protocol representing a scan, the result of the camera output. It encapsulates a simple file path. Since it’s a protocol, you can implement this object to store more details.
See moreDeclaration
Objective-C
@protocol GSKScanProtocol <NSObject>
Swift
protocol GSKScanProtocol : NSObjectProtocol