CLUInfoModule

@protocol CLUInfoModule <NSObject>

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
  • Initialize info module with specific writer which implements CLUWritable protocol. So module will be able to record/write required information.

    Declaration

    Objective-C

    - (instancetype)initWithWriter:(id<CLUWritable>)writer;

    Swift

    init!(writer: CLUWritable!)

    Parameters

    writer

    Writer object which implements CLUWritable protocol. Responsible for actual writing information to some specific file

    Return Value

    New instance of info module

  • Record actual information once and cleanup everything

    Declaration

    Objective-C

    - (void)recordInfoData;

    Swift

    func recordInfoData()