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 systemDeclaration
Objective-C
@protocol CLUInfoModule <NSObject>
Swift
protocol CLUInfoModule : NSObjectProtocol
-
See moreCLUInteractionObserverDelegate
protocol describe delegate methods which will handle all touches events sent by custom gesture recognizer (seeCLUGeneralGestureRecognizer
)Declaration
Objective-C
@protocol CLUInteractionObserverDelegate <NSObject>
Swift
protocol CLUInteractionObserverDelegate : NSObjectProtocol
-
See moreCLUNetworkObserverDelegate
protocol describe delegate methods which will handle all network operations events sent by customNSURLProtocol
(seeCLUURLProtocol
andCLUURLProtocolConfiguration
)Declaration
Objective-C
@protocol CLUNetworkObserverDelegate <NSObject>
Swift
protocol CLUNetworkObserverDelegate : 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 WritersWarning
Every recordable modules have to implement this protocol to be able to work normally inside the systemDeclaration
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 (seeUIView (CLUViewRecordableAdditions)
,UILabel (CLUViewRecordableAdditions)
,UIImageView (CLUViewRecordableAdditions)
,UITextField (CLUViewRecordableAdditions)
for exmaples)Declaration
Objective-C
@protocol CLUViewRecordableProperties <NSObject>
Swift
protocol CLUViewRecordableProperties : NSObjectProtocol
-
See moreCLUWritable
protocol describe writers (likeCLUDataWriter
orCLUVideoWriter
) which needs to actually write new data to specific file (could be text file, video file etc.)Declaration
Objective-C
@protocol CLUWritable <NSObject>
Swift
protocol CLUWritable : NSObjectProtocol