CrashReporterLite.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // CrashReporterLite.h
  3. // Bugly
  4. //
  5. // Created by Ben Xu on 15/5/19.
  6. // Copyright (c) 2015年 tencent.com. All rights reserved.
  7. //
  8. // BuglyExtension SDK Version 1.0
  9. #import <Foundation/Foundation.h>
  10. @interface CrashReporterLite : NSObject
  11. /**
  12. * @brief 初始化 BuglyExtension 崩溃上报,开启 App Group
  13. *
  14. * 初始化方法:
  15. * iOS Extension : 在 ViewController 的 initWithCoder: 方法中调用
  16. * WatchKit Extension : 在 WKInterfaceController 的 init 方法中调用
  17. *
  18. * @param identifier : App Group Identifier ( WatchKit Extension 可选 )
  19. */
  20. + (BOOL)startWithApplicationGroupIdentifier:(NSString *)identifier;
  21. /**
  22. * @brief 初始化 BuglyExtension 崩溃上报,不开启 App Group
  23. *
  24. * 初始化方法:
  25. * iOS Extension : 不支持
  26. * WatchKit Extension : 在 WKInterfaceController 的 init 方法中调用
  27. */
  28. + (BOOL)start;
  29. /**
  30. * @brief 设置是否开启打印 sdk 的 log 信息,默认关闭。在初始化方法之前调用
  31. *
  32. * @param enable 设置为YES,则打印sdk的log信息,在Release产品中请务必设置为NO
  33. */
  34. + (void)enableLog:(BOOL)enable;
  35. @end