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 more

    Declaration

    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 more

    Declaration

    Objective-C

    @protocol GSKPDFImageProcessor

    Swift

    protocol GSKPDFImageProcessor