KMTools_OC.h 768 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // KMTools_OC.h
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2023/3/27.
  6. //
  7. #import <Foundation/Foundation.h>
  8. typedef NS_ENUM(NSUInteger, KMAppTarget) {
  9. KMAppTargetFree = 0,
  10. KMAppTargetPro = 1,
  11. KMAppTargetDMG = 2
  12. };
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface KMTools_OC : NSObject
  15. + (BOOL)isDefaultRoleHandlerForContentType:(NSString*)fileExtension;
  16. + (BOOL) setPreviewAsDefaultApplicationForFileExtension:(NSString *) fileExtension;
  17. + (BOOL)setMyselfAsDefaultApplicationForFileExtension:(NSString *) fileExtension;
  18. + (KMAppTarget)getAppTarget;
  19. @end
  20. @interface KMTools_OC (Testing)
  21. + (NSData *)getPDFData;
  22. @end
  23. @interface KMPageSizeTool : NSObject
  24. + (NSString *)conversionWithUnit:(NSString *)unit value:(CGFloat)value;
  25. @end
  26. NS_ASSUME_NONNULL_END