Garden all the private headers with description and null-ability annotation
This commit is contained in:
parent
f7d0fae94d
commit
b395243d37
|
@ -11,6 +11,7 @@
|
|||
@class SDAsyncBlockOperation;
|
||||
typedef void (^SDAsyncBlock)(SDAsyncBlockOperation * __nonnull asyncOperation);
|
||||
|
||||
/// A async block operation, success after you call `completer` (not like `NSBlockOperation` which is for sync block, success on return)
|
||||
@interface SDAsyncBlockOperation : NSOperation
|
||||
|
||||
- (nonnull instancetype)initWithBlock:(nonnull SDAsyncBlock)block;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "SDWebImageCompat.h"
|
||||
|
||||
/// Device information helper methods
|
||||
@interface SDDeviceHelper : NSObject
|
||||
|
||||
+ (NSUInteger)totalMemory;
|
||||
|
|
|
@ -9,9 +9,8 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "SDWebImageCompat.h"
|
||||
|
||||
// Cross-platform display link wrapper. Do not retain the target
|
||||
// Use `CADisplayLink` on iOS/tvOS, `CVDisplayLink` on macOS, `NSTimer` on watchOS
|
||||
|
||||
/// Cross-platform display link wrapper. Do not retain the target
|
||||
/// Use `CADisplayLink` on iOS/tvOS, `CVDisplayLink` on macOS, `NSTimer` on watchOS
|
||||
@interface SDDisplayLink : NSObject
|
||||
|
||||
@property (readonly, nonatomic, weak, nullable) id target;
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/// File Extended Attribute (xattr) helper methods
|
||||
@interface SDFileAttributeHelper : NSObject
|
||||
|
||||
+ (NSArray*)extendedAttributeNamesAtPath:(NSString*)path traverseLink:(BOOL)follow error:(NSError**)err;
|
||||
+ (BOOL)hasExtendedAttribute:(NSString*)name atPath:(NSString*)path traverseLink:(BOOL)follow error:(NSError**)err;
|
||||
+ (NSData*)extendedAttribute:(NSString*)name atPath:(NSString*)path traverseLink:(BOOL)follow error:(NSError**)err;
|
||||
+ (BOOL)setExtendedAttribute:(NSString*)name value:(NSData*)value atPath:(NSString*)path traverseLink:(BOOL)follow overwrite:(BOOL)overwrite error:(NSError**)err;
|
||||
+ (BOOL)removeExtendedAttribute:(NSString*)name atPath:(NSString*)path traverseLink:(BOOL)follow error:(NSError**)err;
|
||||
+ (nullable NSArray<NSString *> *)extendedAttributeNamesAtPath:(nonnull NSString*)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err;
|
||||
+ (BOOL)hasExtendedAttribute:(nonnull NSString *)name atPath:(nonnull NSString*)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err;
|
||||
+ (nullable NSData *)extendedAttribute:(nonnull NSString*)name atPath:(nonnull NSString*)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err;
|
||||
+ (BOOL)setExtendedAttribute:(nonnull NSString*)name value:(nonnull NSData *)value atPath:(nonnull NSString*)path traverseLink:(BOOL)follow overwrite:(BOOL)overwrite error:(NSError * _Nullable * _Nullable)err;
|
||||
+ (BOOL)removeExtendedAttribute:(nonnull NSString*)name atPath:(nonnull NSString*)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err;
|
||||
|
||||
@end
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "SDWebImageCompat.h"
|
||||
|
||||
// Apple parse the Asset Catalog compiled file(`Assets.car`) by CoreUI.framework, however it's a private framework and there are no other ways to directly get the data. So we just process the normal bundle files :)
|
||||
|
||||
/// A Image-Asset manager to work like UIKit/AppKit's image cache behavior
|
||||
/// Apple parse the Asset Catalog compiled file(`Assets.car`) by CoreUI.framework, however it's a private framework and there are no other ways to directly get the data. So we just process the normal bundle files :)
|
||||
@interface SDImageAssetManager : NSObject
|
||||
|
||||
@property (nonatomic, strong, nonnull) NSMapTable<NSString *, UIImage *> *imageTable;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "SDWebImageCompat.h"
|
||||
|
||||
// This is used for operation management, but not for operation queue execute
|
||||
/// This is used for operation management, but not for operation queue execute
|
||||
@interface SDImageCachesManagerOperation : NSOperation
|
||||
|
||||
@property (nonatomic, assign, readonly) NSUInteger pendingCount;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "SDWebImageCompat.h"
|
||||
|
||||
/// A weak proxy which forward all the message to the target
|
||||
@interface SDWeakProxy : NSProxy
|
||||
|
||||
@property (nonatomic, weak, readonly, nullable) id target;
|
||||
|
|
Loading…
Reference in New Issue