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
  • Represents the quadrangle in the quadrangle edition screen.

    See more

    Declaration

    Objective-C

    @protocol GSKEditableFrameDelegate

    Swift

    protocol GSKEditableFrameDelegate
  • A interface for a logger object. Implement this to inject your own logger or use the default logger available in the SDK.

    See more

    Declaration

    Objective-C

    @protocol GSKLogger <NSObject>

    Swift

    protocol GSKLogger : NSObjectProtocol
  • 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 <NSObject>

    Swift

    protocol GSKPDFImageProcessor : NSObjectProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol GSKTriggerDeciderDelegate <NSObject>
    
    - (void)triggerDecider:(GSKTriggerDecider *)triggerDecider decidedToTriggerWithQuadrangle:(GSKQuadrangle *)quadrangle;
    - (void)triggerDecider:(GSKTriggerDecider *)triggerDecider suggestedQuadrangle:(GSKQuadrangle *)quadrangle;
    
    - (void)triggerDeciderIsAboutDecide:(GSKTriggerDecider *)triggerDecider;
    - (void)triggerDeciderIsSearching:(GSKTriggerDecider *)triggerDecider;
    
    @end

    Swift

    protocol GSKTriggerDeciderDelegate : NSObjectProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol GSCViewDelegate <NSObject>
    
    - (void)cameraView:(GSKView *)cameraView requestedFocusAtPoint:(CGPoint)focusPoint;
    
    @end

    Swift

    protocol GSCViewDelegate : NSObjectProtocol