PCSTools.h 851 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // PCSTools.h
  3. // sampleSDK
  4. //
  5. // Created by 王昭威 on 2023/1/15.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "OperationNodeProtocol.h"
  9. #import <math.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. extern inline CGFloat dgree_2_rad(CGFloat dgree);
  12. extern void showAlertToDiscardCachesWithTitle(id<OperationNodeProtocol> node, NSString* title, NSString* description, WillQuitCompletionBlockType block);
  13. @interface PCSTools : NSObject
  14. @property (nonatomic, readonly) NSString* documentPath;
  15. @property (nonatomic, readonly) NSString* tmpPath;
  16. @property (nonatomic, readonly) NSURL* moviesDir;
  17. @property (nonatomic, readonly) NSString* libraryPath;
  18. @property (nonatomic, readonly) NSString* mainStoryboardName;
  19. + (NSBundle*)sdkBundle;
  20. + (PCSTools*)shared;
  21. - (void)cleanDiskCache;
  22. - (NSString*)imagePathByName: (NSString*)name;
  23. @end
  24. NS_ASSUME_NONNULL_END