KMTools_OC.h 704 B

12345678910111213141516171819202122232425262728293031323334
  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 KMPageSizeTool : NSObject
  21. + (NSString *)conversionWithUnit:(NSString *)unit value:(CGFloat)value;
  22. @end
  23. NS_ASSUME_NONNULL_END