Protocols

The following protocols are available globally.

  • CLUInfoModule protocol describe info modules (like Device Info module or Exception module), static one-time modules which needs to write their data only once during recording.

    Warning

    Every info modules have to implement this protocol to be able to work normally inside the system
    See more

    Declaration

    Objective-C

    @protocol CLUInfoModule <NSObject>

    Swift

    protocol CLUInfoModule : NSObjectProtocol
  • CLUInteractionObserverDelegate protocol describe delegate methods which will handle all touches events sent by custom gesture recognizer (see CLUGeneralGestureRecognizer)

    See more

    Declaration

    Objective-C

    @protocol CLUInteractionObserverDelegate <NSObject>

    Swift

    protocol CLUInteractionObserverDelegate : NSObjectProtocol
  • CLURecordableModule protocol describe recordable module (like Video, View Structure, Network modules etc) which needs to track or inspect some specific information over time (like view structure for example) and record this information with specific timestamp using Writers

    Warning

    Every recordable modules have to implement this protocol to be able to work normally inside the system
    See more

    Declaration

    Objective-C

    @protocol CLURecordableModule <NSObject>

    Swift

    protocol CLURecordableModule : NSObjectProtocol
  • CLUViewRecordableProperties protocol describe common interface for UIView’s (and all subclasses) properties parsing into dictionary which will be used in JSON encoding to the specific file.

    Warning

    Needs to be implemented in all custom UIView related categories with properties parsing methods (see UIView (CLUViewRecordableAdditions), UILabel (CLUViewRecordableAdditions), UIImageView (CLUViewRecordableAdditions), UITextField (CLUViewRecordableAdditions) for exmaples)
    See more

    Declaration

    Objective-C

    @protocol CLUViewRecordableProperties <NSObject>

    Swift

    protocol CLUViewRecordableProperties : NSObjectProtocol
  • CLUWritable protocol describe writers (like CLUDataWriter or CLUVideoWriter) which needs to actually write new data to specific file (could be text file, video file etc.)

    See more

    Declaration

    Objective-C

    @protocol CLUWritable <NSObject>

    Swift

    protocol CLUWritable : NSObjectProtocol