FLEXOSLogController.h 901 B

12345678910111213141516171819202122232425262728
  1. //
  2. // FLEXOSLogController.h
  3. // FLEX
  4. //
  5. // Created by Tanner on 12/19/18.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXLogController.h"
  9. #define FLEXOSLogAvailable() (NSProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 10)
  10. /// The log controller used for iOS 10 and up.
  11. @interface FLEXOSLogController : NSObject <FLEXLogController>
  12. + (instancetype)withUpdateHandler:(void(^)(NSArray<FLEXSystemLogMessage *> *newMessages))newMessagesHandler;
  13. - (BOOL)startMonitoring;
  14. /// Whether log messages are to be recorded and kept in-memory in the background.
  15. /// You do not need to initialize this value, only change it.
  16. @property (nonatomic) BOOL persistent;
  17. /// Used mostly internally, but also used by the log VC to persist messages
  18. /// that were created prior to enabling persistence.
  19. @property (nonatomic) NSMutableArray<FLEXSystemLogMessage *> *messages;
  20. @end