@octane-xplat/nativescript-mason-core 0.0.1 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +198 -2
- package/artifact-inventory.json +774 -0
- package/box-shadow.d.ts +10 -0
- package/box-shadow.js +48 -0
- package/common.d.ts +485 -0
- package/common.js +2659 -0
- package/css-colors.d.ts +17 -0
- package/css-colors.js +54 -0
- package/css-environment.d.ts +49 -0
- package/css-environment.js +309 -0
- package/css-filter.d.ts +17 -0
- package/css-filter.js +140 -0
- package/css-keyframes.d.ts +41 -0
- package/css-keyframes.js +437 -0
- package/css-math.d.ts +34 -0
- package/css-math.js +300 -0
- package/css-shorthands.d.ts +65 -0
- package/css-shorthands.js +673 -0
- package/css-transform.d.ts +6 -0
- package/css-transform.js +100 -0
- package/diagnostics.d.ts +51 -0
- package/diagnostics.js +52 -0
- package/display-density.d.ts +9 -0
- package/display-density.js +20 -0
- package/fonts.d.ts +20 -0
- package/fonts.js +88 -0
- package/foreign-layout.d.ts +6 -0
- package/foreign-layout.js +151 -0
- package/gradient-stops.d.ts +25 -0
- package/gradient-stops.js +112 -0
- package/index.android.d.ts +11 -0
- package/index.android.js +9 -0
- package/index.d.ts +12 -0
- package/index.ios.d.ts +11 -0
- package/index.ios.js +9 -0
- package/ios-host-README.md +124 -0
- package/layout-types.d.ts +192 -0
- package/mask.d.ts +54 -0
- package/mask.js +26 -0
- package/native-environment.android.d.ts +3 -0
- package/native-environment.android.js +69 -0
- package/native-environment.d.ts +3 -0
- package/native-environment.ios.d.ts +3 -0
- package/native-environment.ios.js +65 -0
- package/native-types-README.md +51 -0
- package/package.json +47 -6
- package/panel-helpers.d.ts +3 -0
- package/panel-helpers.js +8 -0
- package/platforms/android/MasonCore.aar +0 -0
- package/platforms/android/include.gradle +6 -0
- package/platforms/android/manifest.json +73 -0
- package/platforms/ios/FontManager.LICENSE +201 -0
- package/platforms/ios/MasonCore.xcframework/Info.plist +43 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/Mason.h +25 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/MasonCore-Swift.h +1739 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/mason_native.h +601 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/MasonCore +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.abi.json +100095 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.private.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/module.modulemap +9 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/SDWebImage_SDWebImage.bundle/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/SDWebImage_SDWebImage.bundle/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/Mason.h +25 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/MasonCore-Swift.h +1739 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/mason_native.h +601 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/MasonCore +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.abi.json +100095 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/module.modulemap +9 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/SDWebImage_SDWebImage.bundle/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/SDWebImage_SDWebImage.bundle/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/Package.resolved +24 -0
- package/platforms/ios/SDWebImage.LICENSE +20 -0
- package/platforms/ios/build.xcconfig +4 -0
- package/platforms/ios/device-manifest.json +213 -0
- package/platforms/ios/include/FontManager/NSCFontDescriptors.h +36 -0
- package/platforms/ios/include/FontManager/NSCFontFace.h +98 -0
- package/platforms/ios/include/FontManager/NSCFontFaceSet.h +73 -0
- package/platforms/ios/include/FontManager/NSCFontManagerUmbrella.h +7 -0
- package/platforms/ios/include/FontManager/NSCFontParser.h +22 -0
- package/platforms/ios/include/FontManager/NSCFontRegex.h +4 -0
- package/platforms/ios/include/FontManager/NSCFontResolver.h +43 -0
- package/platforms/ios/include/FontManager/NSCFontStyle.h +27 -0
- package/platforms/ios/include/FontManager/NSCFontTypes.h +41 -0
- package/platforms/ios/include/SDWebImage/NSButton+WebCache.h +340 -0
- package/platforms/ios/include/SDWebImage/NSData+ImageContentType.h +63 -0
- package/platforms/ios/include/SDWebImage/NSImage+Compatibility.h +67 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImage.h +136 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImagePlayer.h +113 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageRep.h +33 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageView+WebCache.h +168 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageView.h +125 -0
- package/platforms/ios/include/SDWebImage/SDCallbackQueue.h +59 -0
- package/platforms/ios/include/SDWebImage/SDDiskCache.h +146 -0
- package/platforms/ios/include/SDWebImage/SDGraphicsImageRenderer.h +84 -0
- package/platforms/ios/include/SDWebImage/SDImageAPNGCoder.h +19 -0
- package/platforms/ios/include/SDWebImage/SDImageAWebPCoder.h +23 -0
- package/platforms/ios/include/SDWebImage/SDImageCache.h +482 -0
- package/platforms/ios/include/SDWebImage/SDImageCacheConfig.h +153 -0
- package/platforms/ios/include/SDWebImage/SDImageCacheDefine.h +179 -0
- package/platforms/ios/include/SDWebImage/SDImageCachesManager.h +81 -0
- package/platforms/ios/include/SDWebImage/SDImageCoder.h +347 -0
- package/platforms/ios/include/SDWebImage/SDImageCoderHelper.h +251 -0
- package/platforms/ios/include/SDWebImage/SDImageCodersManager.h +58 -0
- package/platforms/ios/include/SDWebImage/SDImageFrame.h +44 -0
- package/platforms/ios/include/SDWebImage/SDImageGIFCoder.h +22 -0
- package/platforms/ios/include/SDWebImage/SDImageGraphics.h +28 -0
- package/platforms/ios/include/SDWebImage/SDImageHEICCoder.h +25 -0
- package/platforms/ios/include/SDWebImage/SDImageIOAnimatedCoder.h +65 -0
- package/platforms/ios/include/SDWebImage/SDImageIOCoder.h +30 -0
- package/platforms/ios/include/SDWebImage/SDImageLoader.h +146 -0
- package/platforms/ios/include/SDWebImage/SDImageLoadersManager.h +40 -0
- package/platforms/ios/include/SDWebImage/SDImageTransformer.h +283 -0
- package/platforms/ios/include/SDWebImage/SDMemoryCache.h +78 -0
- package/platforms/ios/include/SDWebImage/SDWebImage.h +91 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCacheKeyFilter.h +35 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCacheSerializer.h +39 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCompat.h +102 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDefine.h +420 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloader.h +320 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderConfig.h +113 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderDecryptor.h +52 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderOperation.h +191 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderRequestModifier.h +72 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderResponseModifier.h +72 -0
- package/platforms/ios/include/SDWebImage/SDWebImageError.h +33 -0
- package/platforms/ios/include/SDWebImage/SDWebImageIndicator.h +119 -0
- package/platforms/ios/include/SDWebImage/SDWebImageManager.h +290 -0
- package/platforms/ios/include/SDWebImage/SDWebImageOperation.h +27 -0
- package/platforms/ios/include/SDWebImage/SDWebImageOptionsProcessor.h +78 -0
- package/platforms/ios/include/SDWebImage/SDWebImagePrefetcher.h +168 -0
- package/platforms/ios/include/SDWebImage/SDWebImageTransition.h +131 -0
- package/platforms/ios/include/SDWebImage/UIButton+WebCache.h +402 -0
- package/platforms/ios/include/SDWebImage/UIImage+ExtendedCacheData.h +24 -0
- package/platforms/ios/include/SDWebImage/UIImage+ForceDecode.h +52 -0
- package/platforms/ios/include/SDWebImage/UIImage+GIF.h +26 -0
- package/platforms/ios/include/SDWebImage/UIImage+MemoryCacheCost.h +27 -0
- package/platforms/ios/include/SDWebImage/UIImage+Metadata.h +104 -0
- package/platforms/ios/include/SDWebImage/UIImage+MultiFormat.h +81 -0
- package/platforms/ios/include/SDWebImage/UIImage+Transform.h +164 -0
- package/platforms/ios/include/SDWebImage/UIImageView+HighlightedWebCache.h +142 -0
- package/platforms/ios/include/SDWebImage/UIImageView+WebCache.h +209 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCache.h +131 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCacheOperation.h +52 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCacheState.h +63 -0
- package/platforms/ios/include/module.modulemap +2 -0
- package/platforms/ios/manifest.json +132 -0
- package/platforms/ios/simulator-manifest.json +213 -0
- package/plugin-README.md +234 -0
- package/properties.d.ts +154 -0
- package/properties.js +2456 -0
- package/pseudo.d.ts +9 -0
- package/pseudo.js +57 -0
- package/scroll/index.android.d.ts +15 -0
- package/scroll/index.android.js +72 -0
- package/scroll/index.d.ts +5 -0
- package/scroll/index.ios.d.ts +18 -0
- package/scroll/index.ios.js +106 -0
- package/style.d.ts +768 -0
- package/style.js +7167 -0
- package/symbols.d.ts +25 -0
- package/symbols.js +41 -0
- package/tree/index.android.d.ts +11 -0
- package/tree/index.android.js +42 -0
- package/tree/index.d.ts +15 -0
- package/tree/index.ios.d.ts +26 -0
- package/tree/index.ios.js +53 -0
- package/typings/android-declarations.d.ts +4 -0
- package/typings/android.d.ts +9730 -0
- package/typings/manifest.json +45 -0
- package/typings/native.d.ts +5 -0
- package/typings/objc!FontManager.d.ts +389 -0
- package/typings/objc!MasonCore.d.ts +2472 -0
- package/typings/objc!SDWebImage.d.ts +3378 -0
- package/units.d.ts +29 -0
- package/units.js +44 -0
- package/utils/index.android.d.ts +211 -0
- package/utils/index.android.js +595 -0
- package/utils/index.ios.d.ts +222 -0
- package/utils/index.ios.js +790 -0
- package/view/index.android.d.ts +13 -0
- package/view/index.android.js +74 -0
- package/view/index.d.ts +2 -0
- package/view/index.ios.d.ts +24 -0
- package/view/index.ios.js +157 -0
|
@@ -0,0 +1,3378 @@
|
|
|
1
|
+
|
|
2
|
+
declare class SDAnimatedImage extends UIImage implements SDAnimatedImageProtocol {
|
|
3
|
+
|
|
4
|
+
static alloc(): SDAnimatedImage; // inherited from NSObject
|
|
5
|
+
|
|
6
|
+
static new(): SDAnimatedImage; // inherited from NSObject
|
|
7
|
+
|
|
8
|
+
static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string, error?: interop.Reference<NSError>): SDAnimatedImage; // inherited from NSItemProviderReading
|
|
9
|
+
|
|
10
|
+
readonly animatedImageFormat: number;
|
|
11
|
+
|
|
12
|
+
readonly allFramesLoaded: boolean; // inherited from SDAnimatedImageProtocol
|
|
13
|
+
|
|
14
|
+
readonly animatedCoder: SDAnimatedImageCoder | null; // inherited from SDAnimatedImageProtocol
|
|
15
|
+
|
|
16
|
+
readonly animatedImageData: NSData | null; // inherited from SDAnimatedImageProvider
|
|
17
|
+
|
|
18
|
+
readonly animatedImageFrameCount: number; // inherited from SDAnimatedImageProvider
|
|
19
|
+
|
|
20
|
+
readonly animatedImageLoopCount: number; // inherited from SDAnimatedImageProvider
|
|
21
|
+
|
|
22
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
23
|
+
|
|
24
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
25
|
+
|
|
26
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
27
|
+
|
|
28
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
29
|
+
|
|
30
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
31
|
+
|
|
32
|
+
readonly // inherited from NSObjectProtocol
|
|
33
|
+
|
|
34
|
+
constructor(o: { animatedCoder: SDAnimatedImageCoder; scale: number; }); // inherited from SDAnimatedImageProtocol
|
|
35
|
+
|
|
36
|
+
constructor(o: { data: NSData; scale: number; options: NSDictionary<string, any> | null; }); // inherited from SDAnimatedImageProtocol
|
|
37
|
+
|
|
38
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
39
|
+
|
|
40
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
41
|
+
|
|
42
|
+
class(): typeof NSObject;
|
|
43
|
+
|
|
44
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
45
|
+
|
|
46
|
+
initWithAnimatedCoderScale(animatedCoder: SDAnimatedImageCoder, scale: number): this;
|
|
47
|
+
|
|
48
|
+
initWithDataScaleOptions(data: NSData, scale: number, options: NSDictionary<string, any> | null): this;
|
|
49
|
+
|
|
50
|
+
isEqual(object: any): boolean;
|
|
51
|
+
|
|
52
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
53
|
+
|
|
54
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
55
|
+
|
|
56
|
+
performSelector(aSelector: string): any;
|
|
57
|
+
|
|
58
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
59
|
+
|
|
60
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
61
|
+
|
|
62
|
+
preloadAllFrames(): void;
|
|
63
|
+
|
|
64
|
+
respondsToSelector(aSelector: string): boolean;
|
|
65
|
+
|
|
66
|
+
retainCount(): number;
|
|
67
|
+
|
|
68
|
+
self(): this;
|
|
69
|
+
|
|
70
|
+
unloadAllFrames(): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface SDAnimatedImageCoder extends SDAnimatedImageProvider, SDImageCoder {
|
|
74
|
+
|
|
75
|
+
initWithAnimatedImageDataOptions?(data: NSData | null, options: NSDictionary<string, any> | null): SDAnimatedImageCoder;
|
|
76
|
+
}
|
|
77
|
+
declare var SDAnimatedImageCoder: {
|
|
78
|
+
|
|
79
|
+
prototype: SDAnimatedImageCoder;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
declare const enum SDAnimatedImagePlaybackMode {
|
|
83
|
+
|
|
84
|
+
Normal = 0,
|
|
85
|
+
|
|
86
|
+
Reverse = 1,
|
|
87
|
+
|
|
88
|
+
Bounce = 2,
|
|
89
|
+
|
|
90
|
+
ReversedBounce = 3
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class SDAnimatedImagePlayer extends NSObject {
|
|
94
|
+
|
|
95
|
+
static alloc(): SDAnimatedImagePlayer; // inherited from NSObject
|
|
96
|
+
|
|
97
|
+
static new(): SDAnimatedImagePlayer; // inherited from NSObject
|
|
98
|
+
|
|
99
|
+
static playerWithProvider(provider: SDAnimatedImageProvider): SDAnimatedImagePlayer;
|
|
100
|
+
|
|
101
|
+
animationFrameHandler: (p1: number, p2: UIImage) => void | null;
|
|
102
|
+
|
|
103
|
+
animationLoopHandler: (p1: number) => void | null;
|
|
104
|
+
|
|
105
|
+
readonly currentFrame: UIImage | null;
|
|
106
|
+
|
|
107
|
+
readonly currentFrameIndex: number;
|
|
108
|
+
|
|
109
|
+
readonly currentLoopCount: number;
|
|
110
|
+
|
|
111
|
+
readonly isPlaying: boolean;
|
|
112
|
+
|
|
113
|
+
maxBufferSize: number;
|
|
114
|
+
|
|
115
|
+
playbackMode: SDAnimatedImagePlaybackMode;
|
|
116
|
+
|
|
117
|
+
playbackRate: number;
|
|
118
|
+
|
|
119
|
+
runLoopMode: string;
|
|
120
|
+
|
|
121
|
+
totalFrameCount: number;
|
|
122
|
+
|
|
123
|
+
totalLoopCount: number;
|
|
124
|
+
|
|
125
|
+
constructor(o: { provider: SDAnimatedImageProvider; });
|
|
126
|
+
|
|
127
|
+
clearFrameBuffer(): void;
|
|
128
|
+
|
|
129
|
+
initWithProvider(provider: SDAnimatedImageProvider): this;
|
|
130
|
+
|
|
131
|
+
pausePlaying(): void;
|
|
132
|
+
|
|
133
|
+
seekToFrameAtIndexLoopCount(index: number, loopCount: number): void;
|
|
134
|
+
|
|
135
|
+
startPlaying(): void;
|
|
136
|
+
|
|
137
|
+
stopPlaying(): void;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
interface SDAnimatedImageProtocol extends SDAnimatedImageProvider {
|
|
141
|
+
|
|
142
|
+
allFramesLoaded?: boolean;
|
|
143
|
+
|
|
144
|
+
animatedCoder?: SDAnimatedImageCoder | null;
|
|
145
|
+
|
|
146
|
+
initWithAnimatedCoderScale?(animatedCoder: SDAnimatedImageCoder, scale: number): SDAnimatedImageProtocol;
|
|
147
|
+
|
|
148
|
+
initWithDataScaleOptions?(data: NSData, scale: number, options: NSDictionary<string, any> | null): SDAnimatedImageProtocol;
|
|
149
|
+
|
|
150
|
+
preloadAllFrames?(): void;
|
|
151
|
+
|
|
152
|
+
unloadAllFrames?(): void;
|
|
153
|
+
}
|
|
154
|
+
declare var SDAnimatedImageProtocol: {
|
|
155
|
+
|
|
156
|
+
prototype: SDAnimatedImageProtocol;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
interface SDAnimatedImageProvider extends NSObjectProtocol {
|
|
160
|
+
|
|
161
|
+
animatedImageData: NSData | null;
|
|
162
|
+
|
|
163
|
+
animatedImageFrameCount: number;
|
|
164
|
+
|
|
165
|
+
animatedImageLoopCount: number;
|
|
166
|
+
|
|
167
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
168
|
+
|
|
169
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
170
|
+
}
|
|
171
|
+
declare var SDAnimatedImageProvider: {
|
|
172
|
+
|
|
173
|
+
prototype: SDAnimatedImageProvider;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
declare class SDAnimatedImageView extends UIImageView {
|
|
177
|
+
|
|
178
|
+
static alloc(): SDAnimatedImageView; // inherited from NSObject
|
|
179
|
+
|
|
180
|
+
static appearance(): SDAnimatedImageView; // inherited from UIAppearance
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @since 8.0
|
|
184
|
+
*/
|
|
185
|
+
static appearanceForTraitCollection(trait: UITraitCollection): SDAnimatedImageView; // inherited from UIAppearance
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @since 8.0
|
|
189
|
+
* @deprecated 9.0
|
|
190
|
+
*/
|
|
191
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject | null): SDAnimatedImageView; // inherited from UIAppearance
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @since 9.0
|
|
195
|
+
*/
|
|
196
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): SDAnimatedImageView; // inherited from UIAppearance
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @since 5.0
|
|
200
|
+
* @deprecated 9.0
|
|
201
|
+
*/
|
|
202
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject | null): SDAnimatedImageView; // inherited from UIAppearance
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @since 9.0
|
|
206
|
+
*/
|
|
207
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): SDAnimatedImageView; // inherited from UIAppearance
|
|
208
|
+
|
|
209
|
+
static new(): SDAnimatedImageView; // inherited from NSObject
|
|
210
|
+
|
|
211
|
+
animationTransformer: SDImageTransformer | null;
|
|
212
|
+
|
|
213
|
+
autoPlayAnimatedImage: boolean;
|
|
214
|
+
|
|
215
|
+
clearBufferWhenStopped: boolean;
|
|
216
|
+
|
|
217
|
+
readonly currentFrame: UIImage | null;
|
|
218
|
+
|
|
219
|
+
readonly currentFrameIndex: number;
|
|
220
|
+
|
|
221
|
+
readonly currentLoopCount: number;
|
|
222
|
+
|
|
223
|
+
maxBufferSize: number;
|
|
224
|
+
|
|
225
|
+
playbackMode: SDAnimatedImagePlaybackMode;
|
|
226
|
+
|
|
227
|
+
playbackRate: number;
|
|
228
|
+
|
|
229
|
+
readonly player: SDAnimatedImagePlayer | null;
|
|
230
|
+
|
|
231
|
+
resetFrameIndexWhenStopped: boolean;
|
|
232
|
+
|
|
233
|
+
runLoopMode: string;
|
|
234
|
+
|
|
235
|
+
shouldCustomLoopCount: boolean;
|
|
236
|
+
|
|
237
|
+
shouldIncrementalLoad: boolean;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare const enum SDCallbackPolicy {
|
|
241
|
+
|
|
242
|
+
SafeExecute = 0,
|
|
243
|
+
|
|
244
|
+
Dispatch = 1,
|
|
245
|
+
|
|
246
|
+
Invoke = 2,
|
|
247
|
+
|
|
248
|
+
SafeAsyncMainThread = 3
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare class SDCallbackQueue extends NSObject {
|
|
252
|
+
|
|
253
|
+
static alloc(): SDCallbackQueue; // inherited from NSObject
|
|
254
|
+
|
|
255
|
+
static new(): SDCallbackQueue; // inherited from NSObject
|
|
256
|
+
|
|
257
|
+
policy: SDCallbackPolicy;
|
|
258
|
+
|
|
259
|
+
static readonly currentQueue: SDCallbackQueue;
|
|
260
|
+
|
|
261
|
+
static readonly globalQueue: SDCallbackQueue;
|
|
262
|
+
|
|
263
|
+
static readonly mainQueue: SDCallbackQueue;
|
|
264
|
+
|
|
265
|
+
constructor(o: { dispatchQueue: NSObject & OS_dispatch_queue; });
|
|
266
|
+
|
|
267
|
+
async(block: () => void): void;
|
|
268
|
+
|
|
269
|
+
initWithDispatchQueue(queue: NSObject & OS_dispatch_queue): this;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @since 8.0
|
|
273
|
+
* @deprecated 8.0
|
|
274
|
+
*/
|
|
275
|
+
sync(block: () => void): void;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare class SDDiskCache extends NSObject implements SDDiskCacheProtocol {
|
|
279
|
+
|
|
280
|
+
static alloc(): SDDiskCache; // inherited from NSObject
|
|
281
|
+
|
|
282
|
+
static new(): SDDiskCache; // inherited from NSObject
|
|
283
|
+
|
|
284
|
+
readonly config: SDImageCacheConfig;
|
|
285
|
+
|
|
286
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
287
|
+
|
|
288
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
289
|
+
|
|
290
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
291
|
+
|
|
292
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
293
|
+
|
|
294
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
295
|
+
|
|
296
|
+
readonly // inherited from NSObjectProtocol
|
|
297
|
+
|
|
298
|
+
constructor(o: { cachePath: string; config: SDImageCacheConfig; }); // inherited from SDDiskCacheProtocol
|
|
299
|
+
|
|
300
|
+
cachePathForKey(key: string): string | null;
|
|
301
|
+
|
|
302
|
+
class(): typeof NSObject;
|
|
303
|
+
|
|
304
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
305
|
+
|
|
306
|
+
containsDataForKey(key: string): boolean;
|
|
307
|
+
|
|
308
|
+
dataForKey(key: string): NSData | null;
|
|
309
|
+
|
|
310
|
+
extendedDataForKey(key: string): NSData | null;
|
|
311
|
+
|
|
312
|
+
initWithCachePathConfig(cachePath: string, config: SDImageCacheConfig): this;
|
|
313
|
+
|
|
314
|
+
isEqual(object: any): boolean;
|
|
315
|
+
|
|
316
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
317
|
+
|
|
318
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
319
|
+
|
|
320
|
+
moveCacheDirectoryFromPathToPath(srcPath: string, dstPath: string): void;
|
|
321
|
+
|
|
322
|
+
performSelector(aSelector: string): any;
|
|
323
|
+
|
|
324
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
325
|
+
|
|
326
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
327
|
+
|
|
328
|
+
removeAllData(): void;
|
|
329
|
+
|
|
330
|
+
removeDataForKey(key: string): void;
|
|
331
|
+
|
|
332
|
+
removeExpiredData(): void;
|
|
333
|
+
|
|
334
|
+
respondsToSelector(aSelector: string): boolean;
|
|
335
|
+
|
|
336
|
+
retainCount(): number;
|
|
337
|
+
|
|
338
|
+
self(): this;
|
|
339
|
+
|
|
340
|
+
setDataForKey(data: NSData | null, key: string): void;
|
|
341
|
+
|
|
342
|
+
setExtendedDataForKey(extendedData: NSData | null, key: string): void;
|
|
343
|
+
|
|
344
|
+
totalCount(): number;
|
|
345
|
+
|
|
346
|
+
totalSize(): number;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
interface SDDiskCacheProtocol extends NSObjectProtocol {
|
|
350
|
+
|
|
351
|
+
cachePathForKey(key: string): string | null;
|
|
352
|
+
|
|
353
|
+
containsDataForKey(key: string): boolean;
|
|
354
|
+
|
|
355
|
+
dataForKey(key: string): NSData | null;
|
|
356
|
+
|
|
357
|
+
extendedDataForKey(key: string): NSData | null;
|
|
358
|
+
|
|
359
|
+
initWithCachePathConfig?(cachePath: string, config: SDImageCacheConfig): SDDiskCacheProtocol;
|
|
360
|
+
|
|
361
|
+
removeAllData(): void;
|
|
362
|
+
|
|
363
|
+
removeDataForKey(key: string): void;
|
|
364
|
+
|
|
365
|
+
removeExpiredData(): void;
|
|
366
|
+
|
|
367
|
+
setDataForKey(data: NSData | null, key: string): void;
|
|
368
|
+
|
|
369
|
+
setExtendedDataForKey(extendedData: NSData | null, key: string): void;
|
|
370
|
+
|
|
371
|
+
totalCount(): number;
|
|
372
|
+
|
|
373
|
+
totalSize(): number;
|
|
374
|
+
}
|
|
375
|
+
declare var SDDiskCacheProtocol: {
|
|
376
|
+
|
|
377
|
+
prototype: SDDiskCacheProtocol;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
declare function SDGetDecodeOptionsFromContext(context: NSDictionary<string, any> | null, options: SDWebImageOptions, cacheKey: string): NSDictionary<string, any>;
|
|
381
|
+
|
|
382
|
+
declare function SDGraphicsBeginImageContext(size: CGSize): void;
|
|
383
|
+
|
|
384
|
+
declare function SDGraphicsBeginImageContextWithOptions(size: CGSize, opaque: boolean, scale: number): void;
|
|
385
|
+
|
|
386
|
+
declare function SDGraphicsEndImageContext(): void;
|
|
387
|
+
|
|
388
|
+
declare function SDGraphicsGetCurrentContext(): any | null;
|
|
389
|
+
|
|
390
|
+
declare function SDGraphicsGetImageFromCurrentImageContext(): UIImage | null;
|
|
391
|
+
|
|
392
|
+
declare class SDGraphicsImageRenderer extends NSObject {
|
|
393
|
+
|
|
394
|
+
static alloc(): SDGraphicsImageRenderer; // inherited from NSObject
|
|
395
|
+
|
|
396
|
+
static new(): SDGraphicsImageRenderer; // inherited from NSObject
|
|
397
|
+
|
|
398
|
+
constructor(o: { size: CGSize; });
|
|
399
|
+
|
|
400
|
+
constructor(o: { size: CGSize; format: SDGraphicsImageRendererFormat; });
|
|
401
|
+
|
|
402
|
+
imageWithActions(actions: (p1: any) => void): UIImage;
|
|
403
|
+
|
|
404
|
+
initWithSize(size: CGSize): this;
|
|
405
|
+
|
|
406
|
+
initWithSizeFormat(size: CGSize, format: SDGraphicsImageRendererFormat): this;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare class SDGraphicsImageRendererFormat extends NSObject {
|
|
410
|
+
|
|
411
|
+
static alloc(): SDGraphicsImageRendererFormat; // inherited from NSObject
|
|
412
|
+
|
|
413
|
+
static new(): SDGraphicsImageRendererFormat; // inherited from NSObject
|
|
414
|
+
|
|
415
|
+
static preferredFormat(): SDGraphicsImageRendererFormat;
|
|
416
|
+
|
|
417
|
+
opaque: boolean;
|
|
418
|
+
|
|
419
|
+
preferredRange: SDGraphicsImageRendererFormatRange;
|
|
420
|
+
|
|
421
|
+
scale: number;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @since 10.0
|
|
425
|
+
*/
|
|
426
|
+
uiformat: UIGraphicsImageRendererFormat;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare const enum SDGraphicsImageRendererFormatRange {
|
|
430
|
+
|
|
431
|
+
Unspecified = -1,
|
|
432
|
+
|
|
433
|
+
Automatic = 0,
|
|
434
|
+
|
|
435
|
+
Extended = 1,
|
|
436
|
+
|
|
437
|
+
Standard = 2
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
declare class SDImageAPNGCoder extends SDImageIOAnimatedCoder implements SDAnimatedImageCoder, SDProgressiveImageCoder {
|
|
441
|
+
|
|
442
|
+
static alloc(): SDImageAPNGCoder; // inherited from NSObject
|
|
443
|
+
|
|
444
|
+
static new(): SDImageAPNGCoder; // inherited from NSObject
|
|
445
|
+
|
|
446
|
+
static readonly sharedCoder: SDImageAPNGCoder;
|
|
447
|
+
|
|
448
|
+
readonly animatedImageData: NSData | null; // inherited from SDAnimatedImageProvider
|
|
449
|
+
|
|
450
|
+
readonly animatedImageFrameCount: number; // inherited from SDAnimatedImageProvider
|
|
451
|
+
|
|
452
|
+
readonly animatedImageLoopCount: number; // inherited from SDAnimatedImageProvider
|
|
453
|
+
|
|
454
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
455
|
+
|
|
456
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
457
|
+
|
|
458
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
459
|
+
|
|
460
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
461
|
+
|
|
462
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
463
|
+
|
|
464
|
+
readonly // inherited from NSObjectProtocol
|
|
465
|
+
|
|
466
|
+
constructor(o: { incrementalWithOptions: NSDictionary<string, any> | null; }); // inherited from SDProgressiveImageCoder
|
|
467
|
+
|
|
468
|
+
constructor(o: { animatedImageData: NSData | null; options: NSDictionary<string, any> | null; }); // inherited from SDAnimatedImageCoder
|
|
469
|
+
|
|
470
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
471
|
+
|
|
472
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
473
|
+
|
|
474
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
475
|
+
|
|
476
|
+
canEncodeToFormat(format: number): boolean;
|
|
477
|
+
|
|
478
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
479
|
+
|
|
480
|
+
class(): typeof NSObject;
|
|
481
|
+
|
|
482
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
483
|
+
|
|
484
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
485
|
+
|
|
486
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
487
|
+
|
|
488
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
489
|
+
|
|
490
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
491
|
+
|
|
492
|
+
initIncrementalWithOptions(options: NSDictionary<string, any> | null): this;
|
|
493
|
+
|
|
494
|
+
initWithAnimatedImageDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): this;
|
|
495
|
+
|
|
496
|
+
isEqual(object: any): boolean;
|
|
497
|
+
|
|
498
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
499
|
+
|
|
500
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
501
|
+
|
|
502
|
+
performSelector(aSelector: string): any;
|
|
503
|
+
|
|
504
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
505
|
+
|
|
506
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
507
|
+
|
|
508
|
+
respondsToSelector(aSelector: string): boolean;
|
|
509
|
+
|
|
510
|
+
retainCount(): number;
|
|
511
|
+
|
|
512
|
+
self(): this;
|
|
513
|
+
|
|
514
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @since 14.0
|
|
519
|
+
*/
|
|
520
|
+
declare class SDImageAWebPCoder extends SDImageIOAnimatedCoder implements SDAnimatedImageCoder, SDProgressiveImageCoder {
|
|
521
|
+
|
|
522
|
+
static alloc(): SDImageAWebPCoder; // inherited from NSObject
|
|
523
|
+
|
|
524
|
+
static new(): SDImageAWebPCoder; // inherited from NSObject
|
|
525
|
+
|
|
526
|
+
static readonly sharedCoder: SDImageAWebPCoder;
|
|
527
|
+
|
|
528
|
+
readonly animatedImageData: NSData | null; // inherited from SDAnimatedImageProvider
|
|
529
|
+
|
|
530
|
+
readonly animatedImageFrameCount: number; // inherited from SDAnimatedImageProvider
|
|
531
|
+
|
|
532
|
+
readonly animatedImageLoopCount: number; // inherited from SDAnimatedImageProvider
|
|
533
|
+
|
|
534
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
535
|
+
|
|
536
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
537
|
+
|
|
538
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
539
|
+
|
|
540
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
541
|
+
|
|
542
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
543
|
+
|
|
544
|
+
readonly // inherited from NSObjectProtocol
|
|
545
|
+
|
|
546
|
+
constructor(o: { incrementalWithOptions: NSDictionary<string, any> | null; }); // inherited from SDProgressiveImageCoder
|
|
547
|
+
|
|
548
|
+
constructor(o: { animatedImageData: NSData | null; options: NSDictionary<string, any> | null; }); // inherited from SDAnimatedImageCoder
|
|
549
|
+
|
|
550
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
551
|
+
|
|
552
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
553
|
+
|
|
554
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
555
|
+
|
|
556
|
+
canEncodeToFormat(format: number): boolean;
|
|
557
|
+
|
|
558
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
559
|
+
|
|
560
|
+
class(): typeof NSObject;
|
|
561
|
+
|
|
562
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
563
|
+
|
|
564
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
565
|
+
|
|
566
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
567
|
+
|
|
568
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
569
|
+
|
|
570
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
571
|
+
|
|
572
|
+
initIncrementalWithOptions(options: NSDictionary<string, any> | null): this;
|
|
573
|
+
|
|
574
|
+
initWithAnimatedImageDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): this;
|
|
575
|
+
|
|
576
|
+
isEqual(object: any): boolean;
|
|
577
|
+
|
|
578
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
579
|
+
|
|
580
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
581
|
+
|
|
582
|
+
performSelector(aSelector: string): any;
|
|
583
|
+
|
|
584
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
585
|
+
|
|
586
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
587
|
+
|
|
588
|
+
respondsToSelector(aSelector: string): boolean;
|
|
589
|
+
|
|
590
|
+
retainCount(): number;
|
|
591
|
+
|
|
592
|
+
self(): this;
|
|
593
|
+
|
|
594
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare class SDImageBaseTransformer extends NSObject implements SDImageTransformer {
|
|
598
|
+
|
|
599
|
+
static alloc(): SDImageBaseTransformer; // inherited from NSObject
|
|
600
|
+
|
|
601
|
+
static new(): SDImageBaseTransformer; // inherited from NSObject
|
|
602
|
+
|
|
603
|
+
preserveImageMetadata: boolean;
|
|
604
|
+
|
|
605
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
606
|
+
|
|
607
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
608
|
+
|
|
609
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
610
|
+
|
|
611
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
612
|
+
|
|
613
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
614
|
+
|
|
615
|
+
readonly transformerKey: string; // inherited from SDImageTransformer
|
|
616
|
+
|
|
617
|
+
readonly // inherited from NSObjectProtocol
|
|
618
|
+
|
|
619
|
+
class(): typeof NSObject;
|
|
620
|
+
|
|
621
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
622
|
+
|
|
623
|
+
isEqual(object: any): boolean;
|
|
624
|
+
|
|
625
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
626
|
+
|
|
627
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
628
|
+
|
|
629
|
+
performSelector(aSelector: string): any;
|
|
630
|
+
|
|
631
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
632
|
+
|
|
633
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
634
|
+
|
|
635
|
+
respondsToSelector(aSelector: string): boolean;
|
|
636
|
+
|
|
637
|
+
retainCount(): number;
|
|
638
|
+
|
|
639
|
+
self(): this;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* @since 8.0
|
|
643
|
+
* @deprecated 100000
|
|
644
|
+
*/
|
|
645
|
+
transformedImageWithImageForKey(image: UIImage, key: string): UIImage | null;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
declare class SDImageBlurTransformer extends SDImageBaseTransformer {
|
|
649
|
+
|
|
650
|
+
static alloc(): SDImageBlurTransformer; // inherited from NSObject
|
|
651
|
+
|
|
652
|
+
static new(): SDImageBlurTransformer; // inherited from NSObject
|
|
653
|
+
|
|
654
|
+
static transformerWithRadius(blurRadius: number): SDImageBlurTransformer;
|
|
655
|
+
|
|
656
|
+
readonly blurRadius: number;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
declare class SDImageCache extends NSObject implements SDImageCacheProtocol {
|
|
660
|
+
|
|
661
|
+
static alloc(): SDImageCache; // inherited from NSObject
|
|
662
|
+
|
|
663
|
+
static new(): SDImageCache; // inherited from NSObject
|
|
664
|
+
|
|
665
|
+
additionalCachePathBlock: (p1: string) => string | null | null;
|
|
666
|
+
|
|
667
|
+
readonly config: SDImageCacheConfig;
|
|
668
|
+
|
|
669
|
+
readonly diskCache: SDDiskCacheProtocol;
|
|
670
|
+
|
|
671
|
+
readonly diskCachePath: string;
|
|
672
|
+
|
|
673
|
+
readonly memoryCache: SDMemoryCacheProtocol;
|
|
674
|
+
|
|
675
|
+
static defaultDiskCacheDirectory: string;
|
|
676
|
+
|
|
677
|
+
static readonly sharedImageCache: SDImageCache;
|
|
678
|
+
|
|
679
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
680
|
+
|
|
681
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
682
|
+
|
|
683
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
684
|
+
|
|
685
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
686
|
+
|
|
687
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
688
|
+
|
|
689
|
+
readonly // inherited from NSObjectProtocol
|
|
690
|
+
|
|
691
|
+
constructor(o: { namespace: string; });
|
|
692
|
+
|
|
693
|
+
constructor(o: { namespace: string; diskCacheDirectory: string | null; });
|
|
694
|
+
|
|
695
|
+
constructor(o: { namespace: string; diskCacheDirectory: string | null; config: SDImageCacheConfig | null; });
|
|
696
|
+
|
|
697
|
+
cachePathForKey(key: string | null): string | null;
|
|
698
|
+
|
|
699
|
+
calculateSizeWithCompletionBlock(completionBlock: (p1: number, p2: number) => void | null): void;
|
|
700
|
+
|
|
701
|
+
class(): typeof NSObject;
|
|
702
|
+
|
|
703
|
+
clearDiskOnCompletion(completion: () => void | null): void;
|
|
704
|
+
|
|
705
|
+
clearMemory(): void;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* @since 8.0
|
|
709
|
+
* @deprecated 100000
|
|
710
|
+
*/
|
|
711
|
+
clearWithCacheTypeCompletion(cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
712
|
+
|
|
713
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @since 8.0
|
|
717
|
+
* @deprecated 100000
|
|
718
|
+
*/
|
|
719
|
+
containsImageForKeyCacheTypeCompletion(key: string | null, cacheType: SDImageCacheType, completionBlock: (p1: SDImageCacheType) => void | null): void;
|
|
720
|
+
|
|
721
|
+
deleteOldFilesWithCompletionBlock(completionBlock: () => void | null): void;
|
|
722
|
+
|
|
723
|
+
diskImageDataExistsWithKey(key: string | null): boolean;
|
|
724
|
+
|
|
725
|
+
diskImageDataForKey(key: string | null): NSData | null;
|
|
726
|
+
|
|
727
|
+
diskImageDataQueryForKeyCompletion(key: string | null, completionBlock: (p1: NSData | null) => void | null): void;
|
|
728
|
+
|
|
729
|
+
diskImageExistsWithKeyCompletion(key: string | null, completionBlock: (p1: boolean) => void | null): void;
|
|
730
|
+
|
|
731
|
+
imageFromCacheForKey(key: string | null): UIImage | null;
|
|
732
|
+
|
|
733
|
+
imageFromCacheForKeyOptionsContext(key: string | null, options: SDImageCacheOptions, context: NSDictionary<string, any> | null): UIImage | null;
|
|
734
|
+
|
|
735
|
+
imageFromDiskCacheForKey(key: string | null): UIImage | null;
|
|
736
|
+
|
|
737
|
+
imageFromDiskCacheForKeyOptionsContext(key: string | null, options: SDImageCacheOptions, context: NSDictionary<string, any> | null): UIImage | null;
|
|
738
|
+
|
|
739
|
+
imageFromMemoryCacheForKey(key: string | null): UIImage | null;
|
|
740
|
+
|
|
741
|
+
initWithNamespace(ns: string): this;
|
|
742
|
+
|
|
743
|
+
initWithNamespaceDiskCacheDirectory(ns: string, directory: string | null): this;
|
|
744
|
+
|
|
745
|
+
initWithNamespaceDiskCacheDirectoryConfig(ns: string, directory: string | null, config: SDImageCacheConfig | null): this;
|
|
746
|
+
|
|
747
|
+
isEqual(object: any): boolean;
|
|
748
|
+
|
|
749
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
750
|
+
|
|
751
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
752
|
+
|
|
753
|
+
performSelector(aSelector: string): any;
|
|
754
|
+
|
|
755
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
756
|
+
|
|
757
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
758
|
+
|
|
759
|
+
queryCacheOperationForKeyDone(key: string | null, doneBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDImageCacheToken | null;
|
|
760
|
+
|
|
761
|
+
queryCacheOperationForKeyOptionsContextCacheTypeDone(key: string | null, options: SDImageCacheOptions, context: NSDictionary<string, any> | null, queryCacheType: SDImageCacheType, doneBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDImageCacheToken | null;
|
|
762
|
+
|
|
763
|
+
queryCacheOperationForKeyOptionsContextDone(key: string | null, options: SDImageCacheOptions, context: NSDictionary<string, any> | null, doneBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDImageCacheToken | null;
|
|
764
|
+
|
|
765
|
+
queryCacheOperationForKeyOptionsDone(key: string | null, options: SDImageCacheOptions, doneBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDImageCacheToken | null;
|
|
766
|
+
|
|
767
|
+
queryImageForKeyOptionsContextCacheTypeCompletion(key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, cacheType: SDImageCacheType, completionBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDWebImageOperation | null;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @since 8.0
|
|
771
|
+
* @deprecated 100000
|
|
772
|
+
*/
|
|
773
|
+
queryImageForKeyOptionsContextCompletion(key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, completionBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDWebImageOperation | null;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* @since 8.0
|
|
777
|
+
* @deprecated 100000
|
|
778
|
+
*/
|
|
779
|
+
removeImageForKeyCacheTypeCompletion(key: string | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
780
|
+
|
|
781
|
+
removeImageForKeyFromDiskWithCompletion(key: string | null, fromDisk: boolean, completion: () => void | null): void;
|
|
782
|
+
|
|
783
|
+
removeImageForKeyWithCompletion(key: string | null, completion: () => void | null): void;
|
|
784
|
+
|
|
785
|
+
removeImageFromDiskForKey(key: string | null): void;
|
|
786
|
+
|
|
787
|
+
removeImageFromMemoryForKey(key: string | null): void;
|
|
788
|
+
|
|
789
|
+
respondsToSelector(aSelector: string): boolean;
|
|
790
|
+
|
|
791
|
+
retainCount(): number;
|
|
792
|
+
|
|
793
|
+
self(): this;
|
|
794
|
+
|
|
795
|
+
storeImageDataForKeyCompletion(imageData: NSData | null, key: string | null, completionBlock: () => void | null): void;
|
|
796
|
+
|
|
797
|
+
storeImageDataToDiskForKey(imageData: NSData | null, key: string | null): void;
|
|
798
|
+
|
|
799
|
+
storeImageForKeyCompletion(image: UIImage | null, key: string | null, completionBlock: () => void | null): void;
|
|
800
|
+
|
|
801
|
+
storeImageForKeyToDiskCompletion(image: UIImage | null, key: string | null, toDisk: boolean, completionBlock: () => void | null): void;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* @since 8.0
|
|
805
|
+
* @deprecated 100000
|
|
806
|
+
*/
|
|
807
|
+
storeImageImageDataForKeyCacheTypeCompletion(image: UIImage | null, imageData: NSData | null, key: string | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
808
|
+
|
|
809
|
+
storeImageImageDataForKeyOptionsContextCacheTypeCompletion(image: UIImage | null, imageData: NSData | null, key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
810
|
+
|
|
811
|
+
storeImageImageDataForKeyToDiskCompletion(image: UIImage | null, imageData: NSData | null, key: string | null, toDisk: boolean, completionBlock: () => void | null): void;
|
|
812
|
+
|
|
813
|
+
storeImageToMemoryForKey(image: UIImage | null, key: string | null): void;
|
|
814
|
+
|
|
815
|
+
totalDiskCount(): number;
|
|
816
|
+
|
|
817
|
+
totalDiskSize(): number;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
declare class SDImageCacheConfig extends NSObject implements NSCopying {
|
|
821
|
+
|
|
822
|
+
static alloc(): SDImageCacheConfig; // inherited from NSObject
|
|
823
|
+
|
|
824
|
+
static new(): SDImageCacheConfig; // inherited from NSObject
|
|
825
|
+
|
|
826
|
+
diskCacheClass: typeof NSObject;
|
|
827
|
+
|
|
828
|
+
diskCacheExpireType: SDImageCacheConfigExpireType;
|
|
829
|
+
|
|
830
|
+
diskCacheReadingOptions: NSDataReadingOptions;
|
|
831
|
+
|
|
832
|
+
diskCacheWritingOptions: NSDataWritingOptions;
|
|
833
|
+
|
|
834
|
+
fileManager: NSFileManager | null;
|
|
835
|
+
|
|
836
|
+
ioQueueAttributes: NSObject & OS_dispatch_queue_attr | null;
|
|
837
|
+
|
|
838
|
+
maxDiskAge: number;
|
|
839
|
+
|
|
840
|
+
maxDiskSize: number;
|
|
841
|
+
|
|
842
|
+
maxMemoryCost: number;
|
|
843
|
+
|
|
844
|
+
maxMemoryCount: number;
|
|
845
|
+
|
|
846
|
+
memoryCacheClass: typeof NSObject;
|
|
847
|
+
|
|
848
|
+
shouldCacheImagesInMemory: boolean;
|
|
849
|
+
|
|
850
|
+
shouldDisableiCloud: boolean;
|
|
851
|
+
|
|
852
|
+
shouldRemoveExpiredDataWhenEnterBackground: boolean;
|
|
853
|
+
|
|
854
|
+
shouldRemoveExpiredDataWhenTerminate: boolean;
|
|
855
|
+
|
|
856
|
+
shouldUseWeakMemoryCache: boolean;
|
|
857
|
+
|
|
858
|
+
static readonly defaultCacheConfig: SDImageCacheConfig;
|
|
859
|
+
|
|
860
|
+
copyWithZone(zone: interop.Pointer | interop.Reference<any> | ArrayBufferLike | ArrayBufferView | null): any;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare const enum SDImageCacheConfigExpireType {
|
|
864
|
+
|
|
865
|
+
AccessDate = 0,
|
|
866
|
+
|
|
867
|
+
ModificationDate = 1,
|
|
868
|
+
|
|
869
|
+
CreationDate = 2,
|
|
870
|
+
|
|
871
|
+
ChangeDate = 3
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
declare function SDImageCacheDecodeImageData(imageData: NSData, cacheKey: string, options: SDWebImageOptions, context: NSDictionary<string, any> | null): UIImage | null;
|
|
875
|
+
|
|
876
|
+
declare const enum SDImageCacheOptions {
|
|
877
|
+
|
|
878
|
+
QueryMemoryData = 1,
|
|
879
|
+
|
|
880
|
+
QueryMemoryDataSync = 2,
|
|
881
|
+
|
|
882
|
+
QueryDiskDataSync = 4,
|
|
883
|
+
|
|
884
|
+
ScaleDownLargeImages = 8,
|
|
885
|
+
|
|
886
|
+
AvoidDecodeImage = 16,
|
|
887
|
+
|
|
888
|
+
DecodeFirstFrameOnly = 32,
|
|
889
|
+
|
|
890
|
+
PreloadAllFrames = 64,
|
|
891
|
+
|
|
892
|
+
MatchAnimatedImageClass = 128
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
interface SDImageCacheProtocol extends NSObjectProtocol {
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* @since 8.0
|
|
899
|
+
* @deprecated 100000
|
|
900
|
+
*/
|
|
901
|
+
clearWithCacheTypeCompletion?(cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* @since 8.0
|
|
905
|
+
* @deprecated 100000
|
|
906
|
+
*/
|
|
907
|
+
containsImageForKeyCacheTypeCompletion?(key: string | null, cacheType: SDImageCacheType, completionBlock: (p1: SDImageCacheType) => void | null): void;
|
|
908
|
+
|
|
909
|
+
queryImageForKeyOptionsContextCacheTypeCompletion?(key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, cacheType: SDImageCacheType, completionBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDWebImageOperation | null;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @since 8.0
|
|
913
|
+
* @deprecated 100000
|
|
914
|
+
*/
|
|
915
|
+
queryImageForKeyOptionsContextCompletion(key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, completionBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDWebImageOperation | null;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* @since 8.0
|
|
919
|
+
* @deprecated 100000
|
|
920
|
+
*/
|
|
921
|
+
removeImageForKeyCacheTypeCompletion?(key: string | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* @since 8.0
|
|
925
|
+
* @deprecated 100000
|
|
926
|
+
*/
|
|
927
|
+
storeImageImageDataForKeyCacheTypeCompletion(image: UIImage | null, imageData: NSData | null, key: string | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
928
|
+
|
|
929
|
+
storeImageImageDataForKeyOptionsContextCacheTypeCompletion?(image: UIImage | null, imageData: NSData | null, key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
930
|
+
}
|
|
931
|
+
declare var SDImageCacheProtocol: {
|
|
932
|
+
|
|
933
|
+
prototype: SDImageCacheProtocol;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
declare class SDImageCacheToken extends NSObject implements SDWebImageOperation {
|
|
937
|
+
|
|
938
|
+
static alloc(): SDImageCacheToken; // inherited from NSObject
|
|
939
|
+
|
|
940
|
+
static new(): SDImageCacheToken; // inherited from NSObject
|
|
941
|
+
|
|
942
|
+
readonly key: string | null;
|
|
943
|
+
|
|
944
|
+
readonly cancelled: boolean; // inherited from SDWebImageOperation
|
|
945
|
+
|
|
946
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
947
|
+
|
|
948
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
949
|
+
|
|
950
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
951
|
+
|
|
952
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
953
|
+
|
|
954
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
955
|
+
|
|
956
|
+
readonly // inherited from NSObjectProtocol
|
|
957
|
+
|
|
958
|
+
cancel(): void;
|
|
959
|
+
|
|
960
|
+
class(): typeof NSObject;
|
|
961
|
+
|
|
962
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
963
|
+
|
|
964
|
+
isEqual(object: any): boolean;
|
|
965
|
+
|
|
966
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
967
|
+
|
|
968
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
969
|
+
|
|
970
|
+
performSelector(aSelector: string): any;
|
|
971
|
+
|
|
972
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
973
|
+
|
|
974
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
975
|
+
|
|
976
|
+
respondsToSelector(aSelector: string): boolean;
|
|
977
|
+
|
|
978
|
+
retainCount(): number;
|
|
979
|
+
|
|
980
|
+
self(): this;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
declare const enum SDImageCacheType {
|
|
984
|
+
|
|
985
|
+
None = 0,
|
|
986
|
+
|
|
987
|
+
Disk = 1,
|
|
988
|
+
|
|
989
|
+
Memory = 2,
|
|
990
|
+
|
|
991
|
+
All = 3
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
declare class SDImageCachesManager extends NSObject implements SDImageCacheProtocol {
|
|
995
|
+
|
|
996
|
+
static alloc(): SDImageCachesManager; // inherited from NSObject
|
|
997
|
+
|
|
998
|
+
static new(): SDImageCachesManager; // inherited from NSObject
|
|
999
|
+
|
|
1000
|
+
caches: NSArray<SDImageCacheProtocol> | null;
|
|
1001
|
+
|
|
1002
|
+
clearOperationPolicy: SDImageCachesManagerOperationPolicy;
|
|
1003
|
+
|
|
1004
|
+
containsOperationPolicy: SDImageCachesManagerOperationPolicy;
|
|
1005
|
+
|
|
1006
|
+
queryOperationPolicy: SDImageCachesManagerOperationPolicy;
|
|
1007
|
+
|
|
1008
|
+
removeOperationPolicy: SDImageCachesManagerOperationPolicy;
|
|
1009
|
+
|
|
1010
|
+
storeOperationPolicy: SDImageCachesManagerOperationPolicy;
|
|
1011
|
+
|
|
1012
|
+
static readonly sharedManager: SDImageCachesManager;
|
|
1013
|
+
|
|
1014
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1015
|
+
|
|
1016
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1017
|
+
|
|
1018
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1019
|
+
|
|
1020
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1021
|
+
|
|
1022
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1023
|
+
|
|
1024
|
+
readonly // inherited from NSObjectProtocol
|
|
1025
|
+
|
|
1026
|
+
addCache(cache: SDImageCacheProtocol): void;
|
|
1027
|
+
|
|
1028
|
+
class(): typeof NSObject;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* @since 8.0
|
|
1032
|
+
* @deprecated 100000
|
|
1033
|
+
*/
|
|
1034
|
+
clearWithCacheTypeCompletion(cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
1035
|
+
|
|
1036
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* @since 8.0
|
|
1040
|
+
* @deprecated 100000
|
|
1041
|
+
*/
|
|
1042
|
+
containsImageForKeyCacheTypeCompletion(key: string | null, cacheType: SDImageCacheType, completionBlock: (p1: SDImageCacheType) => void | null): void;
|
|
1043
|
+
|
|
1044
|
+
isEqual(object: any): boolean;
|
|
1045
|
+
|
|
1046
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1047
|
+
|
|
1048
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1049
|
+
|
|
1050
|
+
performSelector(aSelector: string): any;
|
|
1051
|
+
|
|
1052
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1053
|
+
|
|
1054
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1055
|
+
|
|
1056
|
+
queryImageForKeyOptionsContextCacheTypeCompletion(key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, cacheType: SDImageCacheType, completionBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDWebImageOperation | null;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* @since 8.0
|
|
1060
|
+
* @deprecated 100000
|
|
1061
|
+
*/
|
|
1062
|
+
queryImageForKeyOptionsContextCompletion(key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, completionBlock: (p1: UIImage | null, p2: NSData | null, p3: SDImageCacheType) => void | null): SDWebImageOperation | null;
|
|
1063
|
+
|
|
1064
|
+
removeCache(cache: SDImageCacheProtocol): void;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* @since 8.0
|
|
1068
|
+
* @deprecated 100000
|
|
1069
|
+
*/
|
|
1070
|
+
removeImageForKeyCacheTypeCompletion(key: string | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
1071
|
+
|
|
1072
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1073
|
+
|
|
1074
|
+
retainCount(): number;
|
|
1075
|
+
|
|
1076
|
+
self(): this;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* @since 8.0
|
|
1080
|
+
* @deprecated 100000
|
|
1081
|
+
*/
|
|
1082
|
+
storeImageImageDataForKeyCacheTypeCompletion(image: UIImage | null, imageData: NSData | null, key: string | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
1083
|
+
|
|
1084
|
+
storeImageImageDataForKeyOptionsContextCacheTypeCompletion(image: UIImage | null, imageData: NSData | null, key: string | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, cacheType: SDImageCacheType, completionBlock: () => void | null): void;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
declare const enum SDImageCachesManagerOperationPolicy {
|
|
1088
|
+
|
|
1089
|
+
Serial = 0,
|
|
1090
|
+
|
|
1091
|
+
Concurrent = 1,
|
|
1092
|
+
|
|
1093
|
+
HighestOnly = 2,
|
|
1094
|
+
|
|
1095
|
+
LowestOnly = 3
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
interface SDImageCoder extends NSObjectProtocol {
|
|
1099
|
+
|
|
1100
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
1101
|
+
|
|
1102
|
+
canEncodeToFormat(format: number): boolean;
|
|
1103
|
+
|
|
1104
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
1105
|
+
|
|
1106
|
+
encodedDataWithFramesLoopCountFormatOptions?(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1107
|
+
|
|
1108
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1109
|
+
}
|
|
1110
|
+
declare var SDImageCoder: {
|
|
1111
|
+
|
|
1112
|
+
prototype: SDImageCoder;
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
declare var SDImageCoderDecodeFileExtensionHint: string;
|
|
1116
|
+
|
|
1117
|
+
declare var SDImageCoderDecodeFirstFrameOnly: string;
|
|
1118
|
+
|
|
1119
|
+
declare var SDImageCoderDecodePreserveAspectRatio: string;
|
|
1120
|
+
|
|
1121
|
+
declare var SDImageCoderDecodeScaleDownLimitBytes: string;
|
|
1122
|
+
|
|
1123
|
+
declare var SDImageCoderDecodeScaleFactor: string;
|
|
1124
|
+
|
|
1125
|
+
declare const enum SDImageCoderDecodeSolution {
|
|
1126
|
+
|
|
1127
|
+
Automatic = 0,
|
|
1128
|
+
|
|
1129
|
+
CoreGraphics = 1,
|
|
1130
|
+
|
|
1131
|
+
UIKit = 2
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
declare var SDImageCoderDecodeThumbnailPixelSize: string;
|
|
1135
|
+
|
|
1136
|
+
declare var SDImageCoderDecodeToHDR: string;
|
|
1137
|
+
|
|
1138
|
+
declare var SDImageCoderDecodeTypeIdentifierHint: string;
|
|
1139
|
+
|
|
1140
|
+
declare var SDImageCoderDecodeUseLazyDecoding: string;
|
|
1141
|
+
|
|
1142
|
+
declare var SDImageCoderEncodeBackgroundColor: string;
|
|
1143
|
+
|
|
1144
|
+
declare var SDImageCoderEncodeCompressionQuality: string;
|
|
1145
|
+
|
|
1146
|
+
declare var SDImageCoderEncodeEmbedThumbnail: string;
|
|
1147
|
+
|
|
1148
|
+
declare var SDImageCoderEncodeFirstFrameOnly: string;
|
|
1149
|
+
|
|
1150
|
+
declare var SDImageCoderEncodeMaxFileSize: string;
|
|
1151
|
+
|
|
1152
|
+
declare var SDImageCoderEncodeMaxPixelSize: string;
|
|
1153
|
+
|
|
1154
|
+
declare var SDImageCoderEncodeToHDR: string;
|
|
1155
|
+
|
|
1156
|
+
declare class SDImageCoderHelper extends NSObject {
|
|
1157
|
+
|
|
1158
|
+
static CGImageContainsAlpha(cgImage: any): boolean;
|
|
1159
|
+
|
|
1160
|
+
static CGImageCreateDecoded(cgImage: any): any | null;
|
|
1161
|
+
|
|
1162
|
+
static CGImageCreateDecodedOrientation(cgImage: any, orientation: CGImagePropertyOrientation): any | null;
|
|
1163
|
+
|
|
1164
|
+
static CGImageCreateScaledSize(cgImage: any, size: CGSize): any | null;
|
|
1165
|
+
|
|
1166
|
+
static CGImageIsHDR(cgImage: any): boolean;
|
|
1167
|
+
|
|
1168
|
+
static CGImageIsHardwareSupported(cgImage: any): boolean;
|
|
1169
|
+
|
|
1170
|
+
static CGImageIsLazy(cgImage: any): boolean;
|
|
1171
|
+
|
|
1172
|
+
static alloc(): SDImageCoderHelper; // inherited from NSObject
|
|
1173
|
+
|
|
1174
|
+
static animatedImageWithFrames(frames: NSArray<SDImageFrame> | SDImageFrame[] | null): UIImage | null;
|
|
1175
|
+
|
|
1176
|
+
static colorSpaceGetDeviceRGB(): any;
|
|
1177
|
+
|
|
1178
|
+
static decodedAndScaledDownImageWithImageLimitBytes(image: UIImage | null, bytes: number): UIImage | null;
|
|
1179
|
+
|
|
1180
|
+
static decodedAndScaledDownImageWithImageLimitBytesPolicy(image: UIImage | null, bytes: number, policy: SDImageForceDecodePolicy): UIImage | null;
|
|
1181
|
+
|
|
1182
|
+
static decodedImageWithImage(image: UIImage | null): UIImage | null;
|
|
1183
|
+
|
|
1184
|
+
static decodedImageWithImagePolicy(image: UIImage | null, policy: SDImageForceDecodePolicy): UIImage | null;
|
|
1185
|
+
|
|
1186
|
+
static exifOrientationFromImageOrientation(imageOrientation: UIImageOrientation): CGImagePropertyOrientation;
|
|
1187
|
+
|
|
1188
|
+
static framesFromAnimatedImage(animatedImage: UIImage | null): NSArray<SDImageFrame> | null;
|
|
1189
|
+
|
|
1190
|
+
static imageOrientationFromEXIFOrientation(exifOrientation: CGImagePropertyOrientation): UIImageOrientation;
|
|
1191
|
+
|
|
1192
|
+
static new(): SDImageCoderHelper; // inherited from NSObject
|
|
1193
|
+
|
|
1194
|
+
static preferredPixelFormat(containsAlpha: boolean): SDImagePixelFormat;
|
|
1195
|
+
|
|
1196
|
+
static scaledSizeWithImageSizeLimitBytesBytesPerPixelFrameCount(imageSize: CGSize, limitBytes: number, bytesPerPixel: number, frameCount: number): CGSize;
|
|
1197
|
+
|
|
1198
|
+
static scaledSizeWithImageSizeScaleSizePreserveAspectRatioShouldScaleUp(imageSize: CGSize, scaleSize: CGSize, preserveAspectRatio: boolean, shouldScaleUp: boolean): CGSize;
|
|
1199
|
+
|
|
1200
|
+
static defaultDecodeSolution: SDImageCoderDecodeSolution;
|
|
1201
|
+
|
|
1202
|
+
static defaultScaleDownLimitBytes: number;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* @since 8.0
|
|
1207
|
+
* @deprecated 8.0
|
|
1208
|
+
*/
|
|
1209
|
+
declare var SDImageCoderWebImageContext: string;
|
|
1210
|
+
|
|
1211
|
+
declare class SDImageCodersManager extends NSObject implements SDImageCoder {
|
|
1212
|
+
|
|
1213
|
+
static alloc(): SDImageCodersManager; // inherited from NSObject
|
|
1214
|
+
|
|
1215
|
+
static new(): SDImageCodersManager; // inherited from NSObject
|
|
1216
|
+
|
|
1217
|
+
coders: NSArray<SDImageCoder> | null;
|
|
1218
|
+
|
|
1219
|
+
static readonly sharedManager: SDImageCodersManager;
|
|
1220
|
+
|
|
1221
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1222
|
+
|
|
1223
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1224
|
+
|
|
1225
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1226
|
+
|
|
1227
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1228
|
+
|
|
1229
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1230
|
+
|
|
1231
|
+
readonly // inherited from NSObjectProtocol
|
|
1232
|
+
|
|
1233
|
+
addCoder(coder: SDImageCoder): void;
|
|
1234
|
+
|
|
1235
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
1236
|
+
|
|
1237
|
+
canEncodeToFormat(format: number): boolean;
|
|
1238
|
+
|
|
1239
|
+
class(): typeof NSObject;
|
|
1240
|
+
|
|
1241
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1242
|
+
|
|
1243
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
1244
|
+
|
|
1245
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1246
|
+
|
|
1247
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1248
|
+
|
|
1249
|
+
isEqual(object: any): boolean;
|
|
1250
|
+
|
|
1251
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1252
|
+
|
|
1253
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1254
|
+
|
|
1255
|
+
performSelector(aSelector: string): any;
|
|
1256
|
+
|
|
1257
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1258
|
+
|
|
1259
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1260
|
+
|
|
1261
|
+
removeCoder(coder: SDImageCoder): void;
|
|
1262
|
+
|
|
1263
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1264
|
+
|
|
1265
|
+
retainCount(): number;
|
|
1266
|
+
|
|
1267
|
+
self(): this;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
declare class SDImageCroppingTransformer extends SDImageBaseTransformer {
|
|
1271
|
+
|
|
1272
|
+
static alloc(): SDImageCroppingTransformer; // inherited from NSObject
|
|
1273
|
+
|
|
1274
|
+
static new(): SDImageCroppingTransformer; // inherited from NSObject
|
|
1275
|
+
|
|
1276
|
+
static transformerWithRect(rect: CGRect): SDImageCroppingTransformer;
|
|
1277
|
+
|
|
1278
|
+
readonly rect: CGRect;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
declare class SDImageFilterTransformer extends SDImageBaseTransformer {
|
|
1282
|
+
|
|
1283
|
+
static alloc(): SDImageFilterTransformer; // inherited from NSObject
|
|
1284
|
+
|
|
1285
|
+
static new(): SDImageFilterTransformer; // inherited from NSObject
|
|
1286
|
+
|
|
1287
|
+
static transformerWithFilter(filter: CIFilter): SDImageFilterTransformer;
|
|
1288
|
+
|
|
1289
|
+
readonly filter: CIFilter;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
declare class SDImageFlippingTransformer extends SDImageBaseTransformer {
|
|
1293
|
+
|
|
1294
|
+
static alloc(): SDImageFlippingTransformer; // inherited from NSObject
|
|
1295
|
+
|
|
1296
|
+
static new(): SDImageFlippingTransformer; // inherited from NSObject
|
|
1297
|
+
|
|
1298
|
+
static transformerWithHorizontalVertical(horizontal: boolean, vertical: boolean): SDImageFlippingTransformer;
|
|
1299
|
+
|
|
1300
|
+
readonly horizontal: boolean;
|
|
1301
|
+
|
|
1302
|
+
readonly vertical: boolean;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
declare const enum SDImageForceDecodePolicy {
|
|
1306
|
+
|
|
1307
|
+
Automatic = 0,
|
|
1308
|
+
|
|
1309
|
+
Never = 1,
|
|
1310
|
+
|
|
1311
|
+
Always = 2
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
declare var SDImageFormatBMP: number;
|
|
1315
|
+
|
|
1316
|
+
declare var SDImageFormatGIF: number;
|
|
1317
|
+
|
|
1318
|
+
declare var SDImageFormatHEIC: number;
|
|
1319
|
+
|
|
1320
|
+
declare var SDImageFormatHEIF: number;
|
|
1321
|
+
|
|
1322
|
+
declare var SDImageFormatJPEG: number;
|
|
1323
|
+
|
|
1324
|
+
declare var SDImageFormatPDF: number;
|
|
1325
|
+
|
|
1326
|
+
declare var SDImageFormatPNG: number;
|
|
1327
|
+
|
|
1328
|
+
declare var SDImageFormatRAW: number;
|
|
1329
|
+
|
|
1330
|
+
declare var SDImageFormatSVG: number;
|
|
1331
|
+
|
|
1332
|
+
declare var SDImageFormatTIFF: number;
|
|
1333
|
+
|
|
1334
|
+
declare var SDImageFormatUndefined: number;
|
|
1335
|
+
|
|
1336
|
+
declare var SDImageFormatWebP: number;
|
|
1337
|
+
|
|
1338
|
+
declare class SDImageFrame extends NSObject {
|
|
1339
|
+
|
|
1340
|
+
static alloc(): SDImageFrame; // inherited from NSObject
|
|
1341
|
+
|
|
1342
|
+
static frameWithImageDuration(image: UIImage, duration: number): SDImageFrame;
|
|
1343
|
+
|
|
1344
|
+
static new(): SDImageFrame; // inherited from NSObject
|
|
1345
|
+
|
|
1346
|
+
readonly duration: number;
|
|
1347
|
+
|
|
1348
|
+
readonly image: UIImage;
|
|
1349
|
+
|
|
1350
|
+
constructor(o: { image: UIImage; duration: number; });
|
|
1351
|
+
|
|
1352
|
+
initWithImageDuration(image: UIImage, duration: number): this;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
declare class SDImageGIFCoder extends SDImageIOAnimatedCoder implements SDAnimatedImageCoder, SDProgressiveImageCoder {
|
|
1356
|
+
|
|
1357
|
+
static alloc(): SDImageGIFCoder; // inherited from NSObject
|
|
1358
|
+
|
|
1359
|
+
static new(): SDImageGIFCoder; // inherited from NSObject
|
|
1360
|
+
|
|
1361
|
+
static readonly sharedCoder: SDImageGIFCoder;
|
|
1362
|
+
|
|
1363
|
+
readonly animatedImageData: NSData | null; // inherited from SDAnimatedImageProvider
|
|
1364
|
+
|
|
1365
|
+
readonly animatedImageFrameCount: number; // inherited from SDAnimatedImageProvider
|
|
1366
|
+
|
|
1367
|
+
readonly animatedImageLoopCount: number; // inherited from SDAnimatedImageProvider
|
|
1368
|
+
|
|
1369
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1370
|
+
|
|
1371
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1372
|
+
|
|
1373
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1374
|
+
|
|
1375
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1376
|
+
|
|
1377
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1378
|
+
|
|
1379
|
+
readonly // inherited from NSObjectProtocol
|
|
1380
|
+
|
|
1381
|
+
constructor(o: { incrementalWithOptions: NSDictionary<string, any> | null; }); // inherited from SDProgressiveImageCoder
|
|
1382
|
+
|
|
1383
|
+
constructor(o: { animatedImageData: NSData | null; options: NSDictionary<string, any> | null; }); // inherited from SDAnimatedImageCoder
|
|
1384
|
+
|
|
1385
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
1386
|
+
|
|
1387
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
1388
|
+
|
|
1389
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
1390
|
+
|
|
1391
|
+
canEncodeToFormat(format: number): boolean;
|
|
1392
|
+
|
|
1393
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
1394
|
+
|
|
1395
|
+
class(): typeof NSObject;
|
|
1396
|
+
|
|
1397
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1398
|
+
|
|
1399
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
1400
|
+
|
|
1401
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1402
|
+
|
|
1403
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1404
|
+
|
|
1405
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
1406
|
+
|
|
1407
|
+
initIncrementalWithOptions(options: NSDictionary<string, any> | null): this;
|
|
1408
|
+
|
|
1409
|
+
initWithAnimatedImageDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): this;
|
|
1410
|
+
|
|
1411
|
+
isEqual(object: any): boolean;
|
|
1412
|
+
|
|
1413
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1414
|
+
|
|
1415
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1416
|
+
|
|
1417
|
+
performSelector(aSelector: string): any;
|
|
1418
|
+
|
|
1419
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1420
|
+
|
|
1421
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1422
|
+
|
|
1423
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1424
|
+
|
|
1425
|
+
retainCount(): number;
|
|
1426
|
+
|
|
1427
|
+
self(): this;
|
|
1428
|
+
|
|
1429
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
declare const enum SDImageHDRType {
|
|
1433
|
+
|
|
1434
|
+
SDR = 0,
|
|
1435
|
+
|
|
1436
|
+
ISOHDR = 1,
|
|
1437
|
+
|
|
1438
|
+
ISOGainMap = 2
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* @since 13.0
|
|
1443
|
+
*/
|
|
1444
|
+
declare class SDImageHEICCoder extends SDImageIOAnimatedCoder implements SDAnimatedImageCoder, SDProgressiveImageCoder {
|
|
1445
|
+
|
|
1446
|
+
static alloc(): SDImageHEICCoder; // inherited from NSObject
|
|
1447
|
+
|
|
1448
|
+
static new(): SDImageHEICCoder; // inherited from NSObject
|
|
1449
|
+
|
|
1450
|
+
static readonly sharedCoder: SDImageHEICCoder;
|
|
1451
|
+
|
|
1452
|
+
readonly animatedImageData: NSData | null; // inherited from SDAnimatedImageProvider
|
|
1453
|
+
|
|
1454
|
+
readonly animatedImageFrameCount: number; // inherited from SDAnimatedImageProvider
|
|
1455
|
+
|
|
1456
|
+
readonly animatedImageLoopCount: number; // inherited from SDAnimatedImageProvider
|
|
1457
|
+
|
|
1458
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1459
|
+
|
|
1460
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1461
|
+
|
|
1462
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1463
|
+
|
|
1464
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1465
|
+
|
|
1466
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1467
|
+
|
|
1468
|
+
readonly // inherited from NSObjectProtocol
|
|
1469
|
+
|
|
1470
|
+
constructor(o: { incrementalWithOptions: NSDictionary<string, any> | null; }); // inherited from SDProgressiveImageCoder
|
|
1471
|
+
|
|
1472
|
+
constructor(o: { animatedImageData: NSData | null; options: NSDictionary<string, any> | null; }); // inherited from SDAnimatedImageCoder
|
|
1473
|
+
|
|
1474
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
1475
|
+
|
|
1476
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
1477
|
+
|
|
1478
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
1479
|
+
|
|
1480
|
+
canEncodeToFormat(format: number): boolean;
|
|
1481
|
+
|
|
1482
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
1483
|
+
|
|
1484
|
+
class(): typeof NSObject;
|
|
1485
|
+
|
|
1486
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1487
|
+
|
|
1488
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
1489
|
+
|
|
1490
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1491
|
+
|
|
1492
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1493
|
+
|
|
1494
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
1495
|
+
|
|
1496
|
+
initIncrementalWithOptions(options: NSDictionary<string, any> | null): this;
|
|
1497
|
+
|
|
1498
|
+
initWithAnimatedImageDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): this;
|
|
1499
|
+
|
|
1500
|
+
isEqual(object: any): boolean;
|
|
1501
|
+
|
|
1502
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1503
|
+
|
|
1504
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1505
|
+
|
|
1506
|
+
performSelector(aSelector: string): any;
|
|
1507
|
+
|
|
1508
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1509
|
+
|
|
1510
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1511
|
+
|
|
1512
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1513
|
+
|
|
1514
|
+
retainCount(): number;
|
|
1515
|
+
|
|
1516
|
+
self(): this;
|
|
1517
|
+
|
|
1518
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
declare class SDImageIOAnimatedCoder extends NSObject implements SDAnimatedImageCoder, SDProgressiveImageCoder {
|
|
1522
|
+
|
|
1523
|
+
static alloc(): SDImageIOAnimatedCoder; // inherited from NSObject
|
|
1524
|
+
|
|
1525
|
+
static new(): SDImageIOAnimatedCoder; // inherited from NSObject
|
|
1526
|
+
|
|
1527
|
+
static readonly animatedImageUTType: string;
|
|
1528
|
+
|
|
1529
|
+
static readonly defaultLoopCount: number;
|
|
1530
|
+
|
|
1531
|
+
static readonly delayTimeProperty: string;
|
|
1532
|
+
|
|
1533
|
+
static readonly dictionaryProperty: string;
|
|
1534
|
+
|
|
1535
|
+
static readonly imageFormat: number;
|
|
1536
|
+
|
|
1537
|
+
static readonly imageUTType: string;
|
|
1538
|
+
|
|
1539
|
+
static readonly loopCountProperty: string;
|
|
1540
|
+
|
|
1541
|
+
static readonly unclampedDelayTimeProperty: string;
|
|
1542
|
+
|
|
1543
|
+
readonly animatedImageData: NSData | null; // inherited from SDAnimatedImageProvider
|
|
1544
|
+
|
|
1545
|
+
readonly animatedImageFrameCount: number; // inherited from SDAnimatedImageProvider
|
|
1546
|
+
|
|
1547
|
+
readonly animatedImageLoopCount: number; // inherited from SDAnimatedImageProvider
|
|
1548
|
+
|
|
1549
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1550
|
+
|
|
1551
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1552
|
+
|
|
1553
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1554
|
+
|
|
1555
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1556
|
+
|
|
1557
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1558
|
+
|
|
1559
|
+
readonly // inherited from NSObjectProtocol
|
|
1560
|
+
|
|
1561
|
+
constructor(o: { incrementalWithOptions: NSDictionary<string, any> | null; }); // inherited from SDProgressiveImageCoder
|
|
1562
|
+
|
|
1563
|
+
constructor(o: { animatedImageData: NSData | null; options: NSDictionary<string, any> | null; }); // inherited from SDAnimatedImageCoder
|
|
1564
|
+
|
|
1565
|
+
animatedImageDurationAtIndex(index: number): number;
|
|
1566
|
+
|
|
1567
|
+
animatedImageFrameAtIndex(index: number): UIImage | null;
|
|
1568
|
+
|
|
1569
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
1570
|
+
|
|
1571
|
+
canEncodeToFormat(format: number): boolean;
|
|
1572
|
+
|
|
1573
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
1574
|
+
|
|
1575
|
+
class(): typeof NSObject;
|
|
1576
|
+
|
|
1577
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1578
|
+
|
|
1579
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
1580
|
+
|
|
1581
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1582
|
+
|
|
1583
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1584
|
+
|
|
1585
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
1586
|
+
|
|
1587
|
+
initIncrementalWithOptions(options: NSDictionary<string, any> | null): this;
|
|
1588
|
+
|
|
1589
|
+
initWithAnimatedImageDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): this;
|
|
1590
|
+
|
|
1591
|
+
isEqual(object: any): boolean;
|
|
1592
|
+
|
|
1593
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1594
|
+
|
|
1595
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1596
|
+
|
|
1597
|
+
performSelector(aSelector: string): any;
|
|
1598
|
+
|
|
1599
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1600
|
+
|
|
1601
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1602
|
+
|
|
1603
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1604
|
+
|
|
1605
|
+
retainCount(): number;
|
|
1606
|
+
|
|
1607
|
+
self(): this;
|
|
1608
|
+
|
|
1609
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
declare class SDImageIOCoder extends NSObject implements SDProgressiveImageCoder {
|
|
1613
|
+
|
|
1614
|
+
static alloc(): SDImageIOCoder; // inherited from NSObject
|
|
1615
|
+
|
|
1616
|
+
static new(): SDImageIOCoder; // inherited from NSObject
|
|
1617
|
+
|
|
1618
|
+
static readonly sharedCoder: SDImageIOCoder;
|
|
1619
|
+
|
|
1620
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1621
|
+
|
|
1622
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1623
|
+
|
|
1624
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1625
|
+
|
|
1626
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1627
|
+
|
|
1628
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1629
|
+
|
|
1630
|
+
readonly // inherited from NSObjectProtocol
|
|
1631
|
+
|
|
1632
|
+
constructor(o: { incrementalWithOptions: NSDictionary<string, any> | null; }); // inherited from SDProgressiveImageCoder
|
|
1633
|
+
|
|
1634
|
+
canDecodeFromData(data: NSData | null): boolean;
|
|
1635
|
+
|
|
1636
|
+
canEncodeToFormat(format: number): boolean;
|
|
1637
|
+
|
|
1638
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
1639
|
+
|
|
1640
|
+
class(): typeof NSObject;
|
|
1641
|
+
|
|
1642
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1643
|
+
|
|
1644
|
+
decodedImageWithDataOptions(data: NSData | null, options: NSDictionary<string, any> | null): UIImage | null;
|
|
1645
|
+
|
|
1646
|
+
encodedDataWithFramesLoopCountFormatOptions(frames: NSArray<SDImageFrame> | SDImageFrame[], loopCount: number, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1647
|
+
|
|
1648
|
+
encodedDataWithImageFormatOptions(image: UIImage | null, format: number, options: NSDictionary<string, any> | null): NSData | null;
|
|
1649
|
+
|
|
1650
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
1651
|
+
|
|
1652
|
+
initIncrementalWithOptions(options: NSDictionary<string, any> | null): this;
|
|
1653
|
+
|
|
1654
|
+
isEqual(object: any): boolean;
|
|
1655
|
+
|
|
1656
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1657
|
+
|
|
1658
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1659
|
+
|
|
1660
|
+
performSelector(aSelector: string): any;
|
|
1661
|
+
|
|
1662
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1663
|
+
|
|
1664
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1665
|
+
|
|
1666
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1667
|
+
|
|
1668
|
+
retainCount(): number;
|
|
1669
|
+
|
|
1670
|
+
self(): this;
|
|
1671
|
+
|
|
1672
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
interface SDImageLoader extends NSObjectProtocol {
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* @since 8.0
|
|
1679
|
+
* @deprecated 100000
|
|
1680
|
+
*/
|
|
1681
|
+
canRequestImageForURL(url: NSURL | null): boolean;
|
|
1682
|
+
|
|
1683
|
+
canRequestImageForURLOptionsContext?(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null): boolean;
|
|
1684
|
+
|
|
1685
|
+
requestImageWithURLOptionsContextProgressCompleted(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): SDWebImageOperation | null;
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* @since 8.0
|
|
1689
|
+
* @deprecated 100000
|
|
1690
|
+
*/
|
|
1691
|
+
shouldBlockFailedURLWithURLError(url: NSURL, error: NSError): boolean;
|
|
1692
|
+
|
|
1693
|
+
shouldBlockFailedURLWithURLErrorOptionsContext?(url: NSURL, error: NSError, options: SDWebImageOptions, context: NSDictionary<string, any> | null): boolean;
|
|
1694
|
+
}
|
|
1695
|
+
declare var SDImageLoader: {
|
|
1696
|
+
|
|
1697
|
+
prototype: SDImageLoader;
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
declare function SDImageLoaderDecodeImageData(imageData: NSData, imageURL: NSURL, options: SDWebImageOptions, context: NSDictionary<string, any> | null): UIImage | null;
|
|
1701
|
+
|
|
1702
|
+
declare function SDImageLoaderDecodeProgressiveImageData(imageData: NSData, imageURL: NSURL, finished: boolean, operation: SDWebImageOperation, options: SDWebImageOptions, context: NSDictionary<string, any> | null): UIImage | null;
|
|
1703
|
+
|
|
1704
|
+
declare function SDImageLoaderGetProgressiveCoder(operation: SDWebImageOperation): SDProgressiveImageCoder | null;
|
|
1705
|
+
|
|
1706
|
+
declare function SDImageLoaderSetProgressiveCoder(operation: SDWebImageOperation, progressiveCoder: SDProgressiveImageCoder | null): void;
|
|
1707
|
+
|
|
1708
|
+
declare class SDImageLoadersManager extends NSObject implements SDImageLoader {
|
|
1709
|
+
|
|
1710
|
+
static alloc(): SDImageLoadersManager; // inherited from NSObject
|
|
1711
|
+
|
|
1712
|
+
static new(): SDImageLoadersManager; // inherited from NSObject
|
|
1713
|
+
|
|
1714
|
+
loaders: NSArray<SDImageLoader> | null;
|
|
1715
|
+
|
|
1716
|
+
static readonly sharedManager: SDImageLoadersManager;
|
|
1717
|
+
|
|
1718
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1719
|
+
|
|
1720
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1721
|
+
|
|
1722
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1723
|
+
|
|
1724
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1725
|
+
|
|
1726
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1727
|
+
|
|
1728
|
+
readonly // inherited from NSObjectProtocol
|
|
1729
|
+
|
|
1730
|
+
addLoader(loader: SDImageLoader): void;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* @since 8.0
|
|
1734
|
+
* @deprecated 100000
|
|
1735
|
+
*/
|
|
1736
|
+
canRequestImageForURL(url: NSURL | null): boolean;
|
|
1737
|
+
|
|
1738
|
+
canRequestImageForURLOptionsContext(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null): boolean;
|
|
1739
|
+
|
|
1740
|
+
class(): typeof NSObject;
|
|
1741
|
+
|
|
1742
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1743
|
+
|
|
1744
|
+
isEqual(object: any): boolean;
|
|
1745
|
+
|
|
1746
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1747
|
+
|
|
1748
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1749
|
+
|
|
1750
|
+
performSelector(aSelector: string): any;
|
|
1751
|
+
|
|
1752
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1753
|
+
|
|
1754
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1755
|
+
|
|
1756
|
+
removeLoader(loader: SDImageLoader): void;
|
|
1757
|
+
|
|
1758
|
+
requestImageWithURLOptionsContextProgressCompleted(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): SDWebImageOperation | null;
|
|
1759
|
+
|
|
1760
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1761
|
+
|
|
1762
|
+
retainCount(): number;
|
|
1763
|
+
|
|
1764
|
+
self(): this;
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* @since 8.0
|
|
1768
|
+
* @deprecated 100000
|
|
1769
|
+
*/
|
|
1770
|
+
shouldBlockFailedURLWithURLError(url: NSURL, error: NSError): boolean;
|
|
1771
|
+
|
|
1772
|
+
shouldBlockFailedURLWithURLErrorOptionsContext(url: NSURL, error: NSError, options: SDWebImageOptions, context: NSDictionary<string, any> | null): boolean;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
declare class SDImagePipelineTransformer extends NSObject implements SDImageTransformer {
|
|
1776
|
+
|
|
1777
|
+
static alloc(): SDImagePipelineTransformer; // inherited from NSObject
|
|
1778
|
+
|
|
1779
|
+
static new(): SDImagePipelineTransformer; // inherited from NSObject
|
|
1780
|
+
|
|
1781
|
+
static transformerWithTransformers(transformers: NSArray<SDImageTransformer> | SDImageTransformer[]): SDImagePipelineTransformer;
|
|
1782
|
+
|
|
1783
|
+
readonly transformers: NSArray<SDImageTransformer>;
|
|
1784
|
+
|
|
1785
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1786
|
+
|
|
1787
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1788
|
+
|
|
1789
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1790
|
+
|
|
1791
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1792
|
+
|
|
1793
|
+
readonly preserveImageMetadata: boolean; // inherited from SDImageTransformer
|
|
1794
|
+
|
|
1795
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1796
|
+
|
|
1797
|
+
readonly transformerKey: string; // inherited from SDImageTransformer
|
|
1798
|
+
|
|
1799
|
+
readonly // inherited from NSObjectProtocol
|
|
1800
|
+
|
|
1801
|
+
class(): typeof NSObject;
|
|
1802
|
+
|
|
1803
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1804
|
+
|
|
1805
|
+
isEqual(object: any): boolean;
|
|
1806
|
+
|
|
1807
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1808
|
+
|
|
1809
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1810
|
+
|
|
1811
|
+
performSelector(aSelector: string): any;
|
|
1812
|
+
|
|
1813
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1814
|
+
|
|
1815
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1816
|
+
|
|
1817
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1818
|
+
|
|
1819
|
+
retainCount(): number;
|
|
1820
|
+
|
|
1821
|
+
self(): this;
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* @since 8.0
|
|
1825
|
+
* @deprecated 100000
|
|
1826
|
+
*/
|
|
1827
|
+
transformedImageWithImageForKey(image: UIImage, key: string): UIImage | null;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
interface SDImagePixelFormat {
|
|
1831
|
+
bitmapInfo: CGBitmapInfo;
|
|
1832
|
+
alignment: number;
|
|
1833
|
+
}
|
|
1834
|
+
declare var SDImagePixelFormat: interop.StructType<SDImagePixelFormat>;
|
|
1835
|
+
|
|
1836
|
+
declare class SDImageResizingTransformer extends SDImageBaseTransformer {
|
|
1837
|
+
|
|
1838
|
+
static alloc(): SDImageResizingTransformer; // inherited from NSObject
|
|
1839
|
+
|
|
1840
|
+
static new(): SDImageResizingTransformer; // inherited from NSObject
|
|
1841
|
+
|
|
1842
|
+
static transformerWithSizeScaleMode(size: CGSize, scaleMode: SDImageScaleMode): SDImageResizingTransformer;
|
|
1843
|
+
|
|
1844
|
+
readonly scaleMode: SDImageScaleMode;
|
|
1845
|
+
|
|
1846
|
+
readonly size: CGSize;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
declare class SDImageRotationTransformer extends SDImageBaseTransformer {
|
|
1850
|
+
|
|
1851
|
+
static alloc(): SDImageRotationTransformer; // inherited from NSObject
|
|
1852
|
+
|
|
1853
|
+
static new(): SDImageRotationTransformer; // inherited from NSObject
|
|
1854
|
+
|
|
1855
|
+
static transformerWithAngleFitSize(angle: number, fitSize: boolean): SDImageRotationTransformer;
|
|
1856
|
+
|
|
1857
|
+
readonly angle: number;
|
|
1858
|
+
|
|
1859
|
+
readonly fitSize: boolean;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
declare class SDImageRoundCornerTransformer extends SDImageBaseTransformer {
|
|
1863
|
+
|
|
1864
|
+
static alloc(): SDImageRoundCornerTransformer; // inherited from NSObject
|
|
1865
|
+
|
|
1866
|
+
static new(): SDImageRoundCornerTransformer; // inherited from NSObject
|
|
1867
|
+
|
|
1868
|
+
static transformerWithRadiusCornersBorderWidthBorderColor(cornerRadius: number, corners: UIRectCorner, borderWidth: number, borderColor: UIColor | null): SDImageRoundCornerTransformer;
|
|
1869
|
+
|
|
1870
|
+
readonly borderColor: UIColor | null;
|
|
1871
|
+
|
|
1872
|
+
readonly borderWidth: number;
|
|
1873
|
+
|
|
1874
|
+
readonly cornerRadius: number;
|
|
1875
|
+
|
|
1876
|
+
readonly corners: UIRectCorner;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
declare function SDImageScaleFactorForKey(key: string | null): number;
|
|
1880
|
+
|
|
1881
|
+
declare const enum SDImageScaleMode {
|
|
1882
|
+
|
|
1883
|
+
Fill = 0,
|
|
1884
|
+
|
|
1885
|
+
AspectFit = 1,
|
|
1886
|
+
|
|
1887
|
+
AspectFill = 2
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
declare class SDImageTintTransformer extends SDImageBaseTransformer {
|
|
1891
|
+
|
|
1892
|
+
static alloc(): SDImageTintTransformer; // inherited from NSObject
|
|
1893
|
+
|
|
1894
|
+
static new(): SDImageTintTransformer; // inherited from NSObject
|
|
1895
|
+
|
|
1896
|
+
static transformerWithColor(tintColor: UIColor): SDImageTintTransformer;
|
|
1897
|
+
|
|
1898
|
+
static transformerWithColorBlendMode(tintColor: UIColor, blendMode: CGBlendMode): SDImageTintTransformer;
|
|
1899
|
+
|
|
1900
|
+
readonly blendMode: CGBlendMode;
|
|
1901
|
+
|
|
1902
|
+
readonly tintColor: UIColor;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
interface SDImageTransformer extends NSObjectProtocol {
|
|
1906
|
+
|
|
1907
|
+
preserveImageMetadata?: boolean;
|
|
1908
|
+
|
|
1909
|
+
transformerKey: string;
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* @since 8.0
|
|
1913
|
+
* @deprecated 100000
|
|
1914
|
+
*/
|
|
1915
|
+
transformedImageWithImageForKey(image: UIImage, key: string): UIImage | null;
|
|
1916
|
+
}
|
|
1917
|
+
declare var SDImageTransformer: {
|
|
1918
|
+
|
|
1919
|
+
prototype: SDImageTransformer;
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
declare class SDMemoryCache<KeyType, ObjectType> extends NSCache<any, any> implements SDMemoryCacheProtocol {
|
|
1923
|
+
|
|
1924
|
+
static alloc<KeyType, ObjectType>(): SDMemoryCache<KeyType, ObjectType>; // inherited from NSObject
|
|
1925
|
+
|
|
1926
|
+
static new<KeyType, ObjectType>(): SDMemoryCache<KeyType, ObjectType>; // inherited from NSObject
|
|
1927
|
+
|
|
1928
|
+
readonly config: SDImageCacheConfig;
|
|
1929
|
+
|
|
1930
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1931
|
+
|
|
1932
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1933
|
+
|
|
1934
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1935
|
+
|
|
1936
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1937
|
+
|
|
1938
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1939
|
+
|
|
1940
|
+
readonly // inherited from NSObjectProtocol
|
|
1941
|
+
|
|
1942
|
+
constructor(o: { config: SDImageCacheConfig; }); // inherited from SDMemoryCacheProtocol
|
|
1943
|
+
|
|
1944
|
+
class(): typeof NSObject;
|
|
1945
|
+
|
|
1946
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1947
|
+
|
|
1948
|
+
initWithConfig(config: SDImageCacheConfig): this;
|
|
1949
|
+
|
|
1950
|
+
isEqual(object: any): boolean;
|
|
1951
|
+
|
|
1952
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1953
|
+
|
|
1954
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1955
|
+
|
|
1956
|
+
objectForKey(key: any): any | null;
|
|
1957
|
+
|
|
1958
|
+
performSelector(aSelector: string): any;
|
|
1959
|
+
|
|
1960
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1961
|
+
|
|
1962
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1963
|
+
|
|
1964
|
+
removeAllObjects(): void;
|
|
1965
|
+
|
|
1966
|
+
removeObjectForKey(key: any): void;
|
|
1967
|
+
|
|
1968
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1969
|
+
|
|
1970
|
+
retainCount(): number;
|
|
1971
|
+
|
|
1972
|
+
self(): this;
|
|
1973
|
+
|
|
1974
|
+
setObjectForKey(object: any | null, key: any): void;
|
|
1975
|
+
|
|
1976
|
+
setObjectForKeyCost(object: any | null, key: any, cost: number): void;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
interface SDMemoryCacheProtocol extends NSObjectProtocol {
|
|
1980
|
+
|
|
1981
|
+
initWithConfig?(config: SDImageCacheConfig): SDMemoryCacheProtocol;
|
|
1982
|
+
|
|
1983
|
+
objectForKey(key: any): any | null;
|
|
1984
|
+
|
|
1985
|
+
removeAllObjects(): void;
|
|
1986
|
+
|
|
1987
|
+
removeObjectForKey(key: any): void;
|
|
1988
|
+
|
|
1989
|
+
setObjectForKey(object: any | null, key: any): void;
|
|
1990
|
+
|
|
1991
|
+
setObjectForKeyCost(object: any | null, key: any, cost: number): void;
|
|
1992
|
+
}
|
|
1993
|
+
declare var SDMemoryCacheProtocol: {
|
|
1994
|
+
|
|
1995
|
+
prototype: SDMemoryCacheProtocol;
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
interface SDProgressiveImageCoder extends SDImageCoder {
|
|
1999
|
+
|
|
2000
|
+
canIncrementalDecodeFromData(data: NSData | null): boolean;
|
|
2001
|
+
|
|
2002
|
+
incrementalDecodedImageWithOptions(options: NSDictionary<string, any> | null): UIImage | null;
|
|
2003
|
+
|
|
2004
|
+
initIncrementalWithOptions?(options: NSDictionary<string, any> | null): SDProgressiveImageCoder;
|
|
2005
|
+
|
|
2006
|
+
updateIncrementalDataFinished(data: NSData | null, finished: boolean): void;
|
|
2007
|
+
}
|
|
2008
|
+
declare var SDProgressiveImageCoder: {
|
|
2009
|
+
|
|
2010
|
+
prototype: SDProgressiveImageCoder;
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
declare function SDScaledImageForKey(key: string | null, image: UIImage | null): UIImage | null;
|
|
2014
|
+
|
|
2015
|
+
declare function SDScaledImageForScaleFactor(scale: number, image: UIImage | null): UIImage | null;
|
|
2016
|
+
|
|
2017
|
+
declare function SDSetDecodeOptionsToContext(mutableContext: NSMutableDictionary<string, any>, mutableOptions: interop.Pointer | interop.Reference<SDWebImageOptions> | ArrayBufferLike | ArrayBufferView, decodeOptions: NSDictionary<string, any>): void;
|
|
2018
|
+
|
|
2019
|
+
declare function SDThumbnailedKeyForKey(key: string | null, thumbnailPixelSize: CGSize, preserveAspectRatio: boolean): string | null;
|
|
2020
|
+
|
|
2021
|
+
declare function SDTransformedKeyForKey(key: string | null, transformerKey: string): string | null;
|
|
2022
|
+
|
|
2023
|
+
declare class SDWebImageActivityIndicator extends NSObject implements SDWebImageIndicator {
|
|
2024
|
+
|
|
2025
|
+
static alloc(): SDWebImageActivityIndicator; // inherited from NSObject
|
|
2026
|
+
|
|
2027
|
+
static new(): SDWebImageActivityIndicator; // inherited from NSObject
|
|
2028
|
+
|
|
2029
|
+
readonly indicatorView: UIActivityIndicatorView;
|
|
2030
|
+
|
|
2031
|
+
static readonly grayIndicator: SDWebImageActivityIndicator;
|
|
2032
|
+
|
|
2033
|
+
static readonly grayLargeIndicator: SDWebImageActivityIndicator;
|
|
2034
|
+
|
|
2035
|
+
static readonly largeIndicator: SDWebImageActivityIndicator;
|
|
2036
|
+
|
|
2037
|
+
static readonly mediumIndicator: SDWebImageActivityIndicator;
|
|
2038
|
+
|
|
2039
|
+
static readonly whiteIndicator: SDWebImageActivityIndicator;
|
|
2040
|
+
|
|
2041
|
+
static readonly whiteLargeIndicator: SDWebImageActivityIndicator;
|
|
2042
|
+
|
|
2043
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2044
|
+
|
|
2045
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2046
|
+
|
|
2047
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2048
|
+
|
|
2049
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2050
|
+
|
|
2051
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2052
|
+
|
|
2053
|
+
readonly // inherited from NSObjectProtocol
|
|
2054
|
+
|
|
2055
|
+
class(): typeof NSObject;
|
|
2056
|
+
|
|
2057
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2058
|
+
|
|
2059
|
+
isEqual(object: any): boolean;
|
|
2060
|
+
|
|
2061
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2062
|
+
|
|
2063
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2064
|
+
|
|
2065
|
+
performSelector(aSelector: string): any;
|
|
2066
|
+
|
|
2067
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2068
|
+
|
|
2069
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2070
|
+
|
|
2071
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2072
|
+
|
|
2073
|
+
retainCount(): number;
|
|
2074
|
+
|
|
2075
|
+
self(): this;
|
|
2076
|
+
|
|
2077
|
+
startAnimatingIndicator(): void;
|
|
2078
|
+
|
|
2079
|
+
stopAnimatingIndicator(): void;
|
|
2080
|
+
|
|
2081
|
+
updateIndicatorProgress(progress: number): void;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
declare class SDWebImageCacheKeyFilter extends NSObject implements SDWebImageCacheKeyFilterProtocol {
|
|
2085
|
+
|
|
2086
|
+
static alloc(): SDWebImageCacheKeyFilter; // inherited from NSObject
|
|
2087
|
+
|
|
2088
|
+
static cacheKeyFilterWithBlock(block: (p1: NSURL) => string | null): SDWebImageCacheKeyFilter;
|
|
2089
|
+
|
|
2090
|
+
static new(): SDWebImageCacheKeyFilter; // inherited from NSObject
|
|
2091
|
+
|
|
2092
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2093
|
+
|
|
2094
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2095
|
+
|
|
2096
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2097
|
+
|
|
2098
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2099
|
+
|
|
2100
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2101
|
+
|
|
2102
|
+
readonly // inherited from NSObjectProtocol
|
|
2103
|
+
|
|
2104
|
+
constructor(o: { block: (p1: NSURL) => string | null; });
|
|
2105
|
+
|
|
2106
|
+
cacheKeyForURL(url: NSURL): string | null;
|
|
2107
|
+
|
|
2108
|
+
class(): typeof NSObject;
|
|
2109
|
+
|
|
2110
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2111
|
+
|
|
2112
|
+
initWithBlock(block: (p1: NSURL) => string | null): this;
|
|
2113
|
+
|
|
2114
|
+
isEqual(object: any): boolean;
|
|
2115
|
+
|
|
2116
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2117
|
+
|
|
2118
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2119
|
+
|
|
2120
|
+
performSelector(aSelector: string): any;
|
|
2121
|
+
|
|
2122
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2123
|
+
|
|
2124
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2125
|
+
|
|
2126
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2127
|
+
|
|
2128
|
+
retainCount(): number;
|
|
2129
|
+
|
|
2130
|
+
self(): this;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
interface SDWebImageCacheKeyFilterProtocol extends NSObjectProtocol {
|
|
2134
|
+
|
|
2135
|
+
cacheKeyForURL(url: NSURL): string | null;
|
|
2136
|
+
}
|
|
2137
|
+
declare var SDWebImageCacheKeyFilterProtocol: {
|
|
2138
|
+
|
|
2139
|
+
prototype: SDWebImageCacheKeyFilterProtocol;
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2142
|
+
declare class SDWebImageCacheSerializer extends NSObject implements SDWebImageCacheSerializerProtocol {
|
|
2143
|
+
|
|
2144
|
+
static alloc(): SDWebImageCacheSerializer; // inherited from NSObject
|
|
2145
|
+
|
|
2146
|
+
static cacheSerializerWithBlock(block: (p1: UIImage, p2: NSData | null, p3: NSURL | null) => NSData | null): SDWebImageCacheSerializer;
|
|
2147
|
+
|
|
2148
|
+
static new(): SDWebImageCacheSerializer; // inherited from NSObject
|
|
2149
|
+
|
|
2150
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2151
|
+
|
|
2152
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2153
|
+
|
|
2154
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2155
|
+
|
|
2156
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2157
|
+
|
|
2158
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2159
|
+
|
|
2160
|
+
readonly // inherited from NSObjectProtocol
|
|
2161
|
+
|
|
2162
|
+
constructor(o: { block: (p1: UIImage, p2: NSData | null, p3: NSURL | null) => NSData | null; });
|
|
2163
|
+
|
|
2164
|
+
cacheDataWithImageOriginalDataImageURL(image: UIImage, data: NSData | null, imageURL: NSURL | null): NSData | null;
|
|
2165
|
+
|
|
2166
|
+
class(): typeof NSObject;
|
|
2167
|
+
|
|
2168
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2169
|
+
|
|
2170
|
+
initWithBlock(block: (p1: UIImage, p2: NSData | null, p3: NSURL | null) => NSData | null): this;
|
|
2171
|
+
|
|
2172
|
+
isEqual(object: any): boolean;
|
|
2173
|
+
|
|
2174
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2175
|
+
|
|
2176
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2177
|
+
|
|
2178
|
+
performSelector(aSelector: string): any;
|
|
2179
|
+
|
|
2180
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2181
|
+
|
|
2182
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2183
|
+
|
|
2184
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2185
|
+
|
|
2186
|
+
retainCount(): number;
|
|
2187
|
+
|
|
2188
|
+
self(): this;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
interface SDWebImageCacheSerializerProtocol extends NSObjectProtocol {
|
|
2192
|
+
|
|
2193
|
+
cacheDataWithImageOriginalDataImageURL(image: UIImage, data: NSData | null, imageURL: NSURL | null): NSData | null;
|
|
2194
|
+
}
|
|
2195
|
+
declare var SDWebImageCacheSerializerProtocol: {
|
|
2196
|
+
|
|
2197
|
+
prototype: SDWebImageCacheSerializerProtocol;
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
declare class SDWebImageCombinedOperation extends NSObject implements SDWebImageOperation {
|
|
2201
|
+
|
|
2202
|
+
static alloc(): SDWebImageCombinedOperation; // inherited from NSObject
|
|
2203
|
+
|
|
2204
|
+
static new(): SDWebImageCombinedOperation; // inherited from NSObject
|
|
2205
|
+
|
|
2206
|
+
readonly cacheOperation: SDWebImageOperation | null;
|
|
2207
|
+
|
|
2208
|
+
readonly loaderOperation: SDWebImageOperation | null;
|
|
2209
|
+
|
|
2210
|
+
readonly cancelled: boolean; // inherited from SDWebImageOperation
|
|
2211
|
+
|
|
2212
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2213
|
+
|
|
2214
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2215
|
+
|
|
2216
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2217
|
+
|
|
2218
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2219
|
+
|
|
2220
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2221
|
+
|
|
2222
|
+
readonly // inherited from NSObjectProtocol
|
|
2223
|
+
|
|
2224
|
+
cancel(): void;
|
|
2225
|
+
|
|
2226
|
+
class(): typeof NSObject;
|
|
2227
|
+
|
|
2228
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2229
|
+
|
|
2230
|
+
isEqual(object: any): boolean;
|
|
2231
|
+
|
|
2232
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2233
|
+
|
|
2234
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2235
|
+
|
|
2236
|
+
performSelector(aSelector: string): any;
|
|
2237
|
+
|
|
2238
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2239
|
+
|
|
2240
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2241
|
+
|
|
2242
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2243
|
+
|
|
2244
|
+
retainCount(): number;
|
|
2245
|
+
|
|
2246
|
+
self(): this;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
declare var SDWebImageContextAnimatedImageClass: string;
|
|
2250
|
+
|
|
2251
|
+
declare var SDWebImageContextCacheKeyFilter: string;
|
|
2252
|
+
|
|
2253
|
+
declare var SDWebImageContextCacheSerializer: string;
|
|
2254
|
+
|
|
2255
|
+
declare var SDWebImageContextCallbackQueue: string;
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* @since 8.0
|
|
2259
|
+
* @deprecated 100000
|
|
2260
|
+
*/
|
|
2261
|
+
declare var SDWebImageContextCustomManager: string;
|
|
2262
|
+
|
|
2263
|
+
declare var SDWebImageContextDownloadDecryptor: string;
|
|
2264
|
+
|
|
2265
|
+
declare var SDWebImageContextDownloadRequestModifier: string;
|
|
2266
|
+
|
|
2267
|
+
declare var SDWebImageContextDownloadResponseModifier: string;
|
|
2268
|
+
|
|
2269
|
+
declare var SDWebImageContextImageCache: string;
|
|
2270
|
+
|
|
2271
|
+
declare var SDWebImageContextImageCoder: string;
|
|
2272
|
+
|
|
2273
|
+
declare var SDWebImageContextImageDecodeOptions: string;
|
|
2274
|
+
|
|
2275
|
+
declare var SDWebImageContextImageDecodeToHDR: string;
|
|
2276
|
+
|
|
2277
|
+
declare var SDWebImageContextImageEncodeOptions: string;
|
|
2278
|
+
|
|
2279
|
+
declare var SDWebImageContextImageForceDecodePolicy: string;
|
|
2280
|
+
|
|
2281
|
+
declare var SDWebImageContextImageLoader: string;
|
|
2282
|
+
|
|
2283
|
+
declare var SDWebImageContextImagePreserveAspectRatio: string;
|
|
2284
|
+
|
|
2285
|
+
declare var SDWebImageContextImageScaleDownLimitBytes: string;
|
|
2286
|
+
|
|
2287
|
+
declare var SDWebImageContextImageScaleFactor: string;
|
|
2288
|
+
|
|
2289
|
+
declare var SDWebImageContextImageThumbnailPixelSize: string;
|
|
2290
|
+
|
|
2291
|
+
declare var SDWebImageContextImageTransformer: string;
|
|
2292
|
+
|
|
2293
|
+
declare var SDWebImageContextImageTypeIdentifierHint: string;
|
|
2294
|
+
|
|
2295
|
+
declare var SDWebImageContextLoaderCachedImage: string;
|
|
2296
|
+
|
|
2297
|
+
declare var SDWebImageContextOriginalImageCache: string;
|
|
2298
|
+
|
|
2299
|
+
declare var SDWebImageContextOriginalQueryCacheType: string;
|
|
2300
|
+
|
|
2301
|
+
declare var SDWebImageContextOriginalStoreCacheType: string;
|
|
2302
|
+
|
|
2303
|
+
declare var SDWebImageContextQueryCacheType: string;
|
|
2304
|
+
|
|
2305
|
+
declare var SDWebImageContextSetImageOperationKey: string;
|
|
2306
|
+
|
|
2307
|
+
declare var SDWebImageContextStoreCacheType: string;
|
|
2308
|
+
|
|
2309
|
+
declare var SDWebImageDownloadFinishNotification: string;
|
|
2310
|
+
|
|
2311
|
+
declare var SDWebImageDownloadReceiveResponseNotification: string;
|
|
2312
|
+
|
|
2313
|
+
declare var SDWebImageDownloadStartNotification: string;
|
|
2314
|
+
|
|
2315
|
+
declare var SDWebImageDownloadStopNotification: string;
|
|
2316
|
+
|
|
2317
|
+
declare class SDWebImageDownloadToken extends NSObject implements SDWebImageOperation {
|
|
2318
|
+
|
|
2319
|
+
static alloc(): SDWebImageDownloadToken; // inherited from NSObject
|
|
2320
|
+
|
|
2321
|
+
static new(): SDWebImageDownloadToken; // inherited from NSObject
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* @since 10.0
|
|
2325
|
+
*/
|
|
2326
|
+
readonly metrics: NSURLSessionTaskMetrics | null;
|
|
2327
|
+
|
|
2328
|
+
readonly request: NSURLRequest | null;
|
|
2329
|
+
|
|
2330
|
+
readonly response: NSURLResponse | null;
|
|
2331
|
+
|
|
2332
|
+
readonly url: NSURL | null;
|
|
2333
|
+
|
|
2334
|
+
readonly cancelled: boolean; // inherited from SDWebImageOperation
|
|
2335
|
+
|
|
2336
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2337
|
+
|
|
2338
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2339
|
+
|
|
2340
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2341
|
+
|
|
2342
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2343
|
+
|
|
2344
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2345
|
+
|
|
2346
|
+
readonly // inherited from NSObjectProtocol
|
|
2347
|
+
|
|
2348
|
+
cancel(): void;
|
|
2349
|
+
|
|
2350
|
+
class(): typeof NSObject;
|
|
2351
|
+
|
|
2352
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2353
|
+
|
|
2354
|
+
isEqual(object: any): boolean;
|
|
2355
|
+
|
|
2356
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2357
|
+
|
|
2358
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2359
|
+
|
|
2360
|
+
performSelector(aSelector: string): any;
|
|
2361
|
+
|
|
2362
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2363
|
+
|
|
2364
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2365
|
+
|
|
2366
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2367
|
+
|
|
2368
|
+
retainCount(): number;
|
|
2369
|
+
|
|
2370
|
+
self(): this;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
declare class SDWebImageDownloader extends NSObject implements SDImageLoader {
|
|
2374
|
+
|
|
2375
|
+
static alloc(): SDWebImageDownloader; // inherited from NSObject
|
|
2376
|
+
|
|
2377
|
+
static new(): SDWebImageDownloader; // inherited from NSObject
|
|
2378
|
+
|
|
2379
|
+
readonly config: SDWebImageDownloaderConfig;
|
|
2380
|
+
|
|
2381
|
+
readonly currentDownloadCount: number;
|
|
2382
|
+
|
|
2383
|
+
decryptor: SDWebImageDownloaderDecryptorProtocol | null;
|
|
2384
|
+
|
|
2385
|
+
requestModifier: SDWebImageDownloaderRequestModifierProtocol | null;
|
|
2386
|
+
|
|
2387
|
+
responseModifier: SDWebImageDownloaderResponseModifierProtocol | null;
|
|
2388
|
+
|
|
2389
|
+
readonly sessionConfiguration: NSURLSessionConfiguration;
|
|
2390
|
+
|
|
2391
|
+
suspended: boolean;
|
|
2392
|
+
|
|
2393
|
+
static readonly sharedDownloader: SDWebImageDownloader;
|
|
2394
|
+
|
|
2395
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2396
|
+
|
|
2397
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2398
|
+
|
|
2399
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2400
|
+
|
|
2401
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2402
|
+
|
|
2403
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2404
|
+
|
|
2405
|
+
readonly // inherited from NSObjectProtocol
|
|
2406
|
+
|
|
2407
|
+
constructor(o: { config: SDWebImageDownloaderConfig | null; });
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* @since 8.0
|
|
2411
|
+
* @deprecated 100000
|
|
2412
|
+
*/
|
|
2413
|
+
canRequestImageForURL(url: NSURL | null): boolean;
|
|
2414
|
+
|
|
2415
|
+
canRequestImageForURLOptionsContext(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null): boolean;
|
|
2416
|
+
|
|
2417
|
+
cancelAllDownloads(): void;
|
|
2418
|
+
|
|
2419
|
+
class(): typeof NSObject;
|
|
2420
|
+
|
|
2421
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2422
|
+
|
|
2423
|
+
downloadImageWithURLCompleted(url: NSURL | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): SDWebImageDownloadToken | null;
|
|
2424
|
+
|
|
2425
|
+
downloadImageWithURLOptionsContextProgressCompleted(url: NSURL | null, options: SDWebImageDownloaderOptions, context: NSDictionary<string, any> | null, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): SDWebImageDownloadToken | null;
|
|
2426
|
+
|
|
2427
|
+
downloadImageWithURLOptionsProgressCompleted(url: NSURL | null, options: SDWebImageDownloaderOptions, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): SDWebImageDownloadToken | null;
|
|
2428
|
+
|
|
2429
|
+
initWithConfig(config: SDWebImageDownloaderConfig | null): this;
|
|
2430
|
+
|
|
2431
|
+
invalidateSessionAndCancel(cancelPendingOperations: boolean): void;
|
|
2432
|
+
|
|
2433
|
+
isEqual(object: any): boolean;
|
|
2434
|
+
|
|
2435
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2436
|
+
|
|
2437
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2438
|
+
|
|
2439
|
+
performSelector(aSelector: string): any;
|
|
2440
|
+
|
|
2441
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2442
|
+
|
|
2443
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2444
|
+
|
|
2445
|
+
requestImageWithURLOptionsContextProgressCompleted(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): SDWebImageOperation | null;
|
|
2446
|
+
|
|
2447
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2448
|
+
|
|
2449
|
+
retainCount(): number;
|
|
2450
|
+
|
|
2451
|
+
self(): this;
|
|
2452
|
+
|
|
2453
|
+
setValueForHTTPHeaderField(value: string | null, field: string | null): void;
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* @since 8.0
|
|
2457
|
+
* @deprecated 100000
|
|
2458
|
+
*/
|
|
2459
|
+
shouldBlockFailedURLWithURLError(url: NSURL, error: NSError): boolean;
|
|
2460
|
+
|
|
2461
|
+
shouldBlockFailedURLWithURLErrorOptionsContext(url: NSURL, error: NSError, options: SDWebImageOptions, context: NSDictionary<string, any> | null): boolean;
|
|
2462
|
+
|
|
2463
|
+
valueForHTTPHeaderField(field: string | null): string | null;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
declare class SDWebImageDownloaderConfig extends NSObject implements NSCopying {
|
|
2467
|
+
|
|
2468
|
+
static alloc(): SDWebImageDownloaderConfig; // inherited from NSObject
|
|
2469
|
+
|
|
2470
|
+
static new(): SDWebImageDownloaderConfig; // inherited from NSObject
|
|
2471
|
+
|
|
2472
|
+
acceptableContentTypes: NSSet<string> | null;
|
|
2473
|
+
|
|
2474
|
+
acceptableStatusCodes: NSIndexSet | null;
|
|
2475
|
+
|
|
2476
|
+
downloadTimeout: number;
|
|
2477
|
+
|
|
2478
|
+
executionOrder: SDWebImageDownloaderExecutionOrder;
|
|
2479
|
+
|
|
2480
|
+
maxConcurrentDownloads: number;
|
|
2481
|
+
|
|
2482
|
+
minimumProgressInterval: number;
|
|
2483
|
+
|
|
2484
|
+
operationClass: typeof NSObject | null;
|
|
2485
|
+
|
|
2486
|
+
password: string | null;
|
|
2487
|
+
|
|
2488
|
+
sessionConfiguration: NSURLSessionConfiguration | null;
|
|
2489
|
+
|
|
2490
|
+
urlCredential: NSURLCredential | null;
|
|
2491
|
+
|
|
2492
|
+
username: string | null;
|
|
2493
|
+
|
|
2494
|
+
static readonly defaultDownloaderConfig: SDWebImageDownloaderConfig;
|
|
2495
|
+
|
|
2496
|
+
copyWithZone(zone: interop.Pointer | interop.Reference<any> | ArrayBufferLike | ArrayBufferView | null): any;
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
declare class SDWebImageDownloaderDecryptor extends NSObject implements SDWebImageDownloaderDecryptorProtocol {
|
|
2500
|
+
|
|
2501
|
+
static alloc(): SDWebImageDownloaderDecryptor; // inherited from NSObject
|
|
2502
|
+
|
|
2503
|
+
static decryptorWithBlock(block: (p1: NSData, p2: NSURLResponse | null) => NSData | null): SDWebImageDownloaderDecryptor;
|
|
2504
|
+
|
|
2505
|
+
static new(): SDWebImageDownloaderDecryptor; // inherited from NSObject
|
|
2506
|
+
|
|
2507
|
+
static readonly base64Decryptor: SDWebImageDownloaderDecryptor;
|
|
2508
|
+
|
|
2509
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2510
|
+
|
|
2511
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2512
|
+
|
|
2513
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2514
|
+
|
|
2515
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2516
|
+
|
|
2517
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2518
|
+
|
|
2519
|
+
readonly // inherited from NSObjectProtocol
|
|
2520
|
+
|
|
2521
|
+
constructor(o: { block: (p1: NSData, p2: NSURLResponse | null) => NSData | null; });
|
|
2522
|
+
|
|
2523
|
+
class(): typeof NSObject;
|
|
2524
|
+
|
|
2525
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2526
|
+
|
|
2527
|
+
decryptedDataWithDataResponse(data: NSData, response: NSURLResponse | null): NSData | null;
|
|
2528
|
+
|
|
2529
|
+
initWithBlock(block: (p1: NSData, p2: NSURLResponse | null) => NSData | null): this;
|
|
2530
|
+
|
|
2531
|
+
isEqual(object: any): boolean;
|
|
2532
|
+
|
|
2533
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2534
|
+
|
|
2535
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2536
|
+
|
|
2537
|
+
performSelector(aSelector: string): any;
|
|
2538
|
+
|
|
2539
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2540
|
+
|
|
2541
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2542
|
+
|
|
2543
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2544
|
+
|
|
2545
|
+
retainCount(): number;
|
|
2546
|
+
|
|
2547
|
+
self(): this;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
interface SDWebImageDownloaderDecryptorProtocol extends NSObjectProtocol {
|
|
2551
|
+
|
|
2552
|
+
decryptedDataWithDataResponse(data: NSData, response: NSURLResponse | null): NSData | null;
|
|
2553
|
+
}
|
|
2554
|
+
declare var SDWebImageDownloaderDecryptorProtocol: {
|
|
2555
|
+
|
|
2556
|
+
prototype: SDWebImageDownloaderDecryptorProtocol;
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2559
|
+
declare const enum SDWebImageDownloaderExecutionOrder {
|
|
2560
|
+
|
|
2561
|
+
FIFOExecutionOrder = 0,
|
|
2562
|
+
|
|
2563
|
+
LIFOExecutionOrder = 1
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
declare class SDWebImageDownloaderOperation extends NSOperation implements SDWebImageDownloaderOperationProtocol {
|
|
2567
|
+
|
|
2568
|
+
static alloc(): SDWebImageDownloaderOperation; // inherited from NSObject
|
|
2569
|
+
|
|
2570
|
+
static new(): SDWebImageDownloaderOperation; // inherited from NSObject
|
|
2571
|
+
|
|
2572
|
+
readonly context: NSDictionary<string, any> | null;
|
|
2573
|
+
|
|
2574
|
+
readonly options: SDWebImageDownloaderOptions;
|
|
2575
|
+
|
|
2576
|
+
acceptableContentTypes: NSSet<string> | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2577
|
+
|
|
2578
|
+
acceptableStatusCodes: NSIndexSet | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2579
|
+
|
|
2580
|
+
credential: NSURLCredential | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2581
|
+
|
|
2582
|
+
readonly dataTask: NSURLSessionTask | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2583
|
+
|
|
2584
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2585
|
+
|
|
2586
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2587
|
+
|
|
2588
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2589
|
+
|
|
2590
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* @since 10.0
|
|
2594
|
+
*/
|
|
2595
|
+
readonly metrics: NSURLSessionTaskMetrics | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2596
|
+
|
|
2597
|
+
minimumProgressInterval: number; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2598
|
+
|
|
2599
|
+
readonly request: NSURLRequest | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2600
|
+
|
|
2601
|
+
readonly response: NSURLResponse | null; // inherited from SDWebImageDownloaderOperationProtocol
|
|
2602
|
+
|
|
2603
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2604
|
+
|
|
2605
|
+
readonly // inherited from NSObjectProtocol
|
|
2606
|
+
|
|
2607
|
+
constructor(o: { request: NSURLRequest | null; inSession: NSURLSession | null; options: SDWebImageDownloaderOptions; }); // inherited from SDWebImageDownloaderOperationProtocol
|
|
2608
|
+
|
|
2609
|
+
constructor(o: { request: NSURLRequest | null; inSession: NSURLSession | null; options: SDWebImageDownloaderOptions; context: NSDictionary<string, any> | null; }); // inherited from SDWebImageDownloaderOperationProtocol
|
|
2610
|
+
|
|
2611
|
+
URLSessionDataTaskDidBecomeDownloadTask(session: NSURLSession, dataTask: NSURLSessionDataTask, downloadTask: NSURLSessionDownloadTask): void;
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* @since 9.0
|
|
2615
|
+
*/
|
|
2616
|
+
URLSessionDataTaskDidBecomeStreamTask(session: NSURLSession, dataTask: NSURLSessionDataTask, streamTask: NSURLSessionStreamTask): void;
|
|
2617
|
+
|
|
2618
|
+
URLSessionDataTaskDidReceiveData(session: NSURLSession, dataTask: NSURLSessionDataTask, data: NSData): void;
|
|
2619
|
+
|
|
2620
|
+
URLSessionDataTaskDidReceiveResponseCompletionHandler(session: NSURLSession, dataTask: NSURLSessionDataTask, response: NSURLResponse, completionHandler: (p1: NSURLSessionResponseDisposition) => void): void;
|
|
2621
|
+
|
|
2622
|
+
URLSessionDataTaskWillCacheResponseCompletionHandler(session: NSURLSession, dataTask: NSURLSessionDataTask, proposedResponse: NSCachedURLResponse, completionHandler: (p1: NSCachedURLResponse | null) => void): void;
|
|
2623
|
+
|
|
2624
|
+
URLSessionDidBecomeInvalidWithError(session: NSURLSession, error: NSError | null): void;
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* @since 16.0
|
|
2628
|
+
*/
|
|
2629
|
+
URLSessionDidCreateTask(session: NSURLSession, task: NSURLSessionTask): void;
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* @since 7.0
|
|
2633
|
+
*/
|
|
2634
|
+
URLSessionDidFinishEventsForBackgroundURLSession(session: NSURLSession): void;
|
|
2635
|
+
|
|
2636
|
+
URLSessionDidReceiveChallengeCompletionHandler(session: NSURLSession, challenge: NSURLAuthenticationChallenge, completionHandler: (p1: NSURLSessionAuthChallengeDisposition, p2: NSURLCredential | null) => void): void;
|
|
2637
|
+
|
|
2638
|
+
URLSessionTaskDidCompleteWithError(session: NSURLSession, task: NSURLSessionTask, error: NSError | null): void;
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* @since 10.0
|
|
2642
|
+
*/
|
|
2643
|
+
URLSessionTaskDidFinishCollectingMetrics(session: NSURLSession, task: NSURLSessionTask, metrics: NSURLSessionTaskMetrics): void;
|
|
2644
|
+
|
|
2645
|
+
URLSessionTaskDidReceiveChallengeCompletionHandler(session: NSURLSession, task: NSURLSessionTask, challenge: NSURLAuthenticationChallenge, completionHandler: (p1: NSURLSessionAuthChallengeDisposition, p2: NSURLCredential | null) => void): void;
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* @since 17.0
|
|
2649
|
+
*/
|
|
2650
|
+
URLSessionTaskDidReceiveInformationalResponse(session: NSURLSession, task: NSURLSessionTask, response: NSHTTPURLResponse): void;
|
|
2651
|
+
|
|
2652
|
+
URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend(session: NSURLSession, task: NSURLSessionTask, bytesSent: number, totalBytesSent: number, totalBytesExpectedToSend: number): void;
|
|
2653
|
+
|
|
2654
|
+
/**
|
|
2655
|
+
* @since 11.0
|
|
2656
|
+
*/
|
|
2657
|
+
URLSessionTaskIsWaitingForConnectivity(session: NSURLSession, task: NSURLSessionTask): void;
|
|
2658
|
+
|
|
2659
|
+
URLSessionTaskNeedNewBodyStream(session: NSURLSession, task: NSURLSessionTask, completionHandler: (p1: NSInputStream | null) => void): void;
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* @since 17.0
|
|
2663
|
+
*/
|
|
2664
|
+
URLSessionTaskNeedNewBodyStreamFromOffsetCompletionHandler(session: NSURLSession, task: NSURLSessionTask, offset: number, completionHandler: (p1: NSInputStream | null) => void): void;
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* @since 11.0
|
|
2668
|
+
*/
|
|
2669
|
+
URLSessionTaskWillBeginDelayedRequestCompletionHandler(session: NSURLSession, task: NSURLSessionTask, request: NSURLRequest, completionHandler: (p1: NSURLSessionDelayedRequestDisposition, p2: NSURLRequest | null) => void): void;
|
|
2670
|
+
|
|
2671
|
+
URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler(session: NSURLSession, task: NSURLSessionTask, response: NSHTTPURLResponse, request: NSURLRequest, completionHandler: (p1: NSURLRequest | null) => void): void;
|
|
2672
|
+
|
|
2673
|
+
addHandlersForProgressCompleted(progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): any | null;
|
|
2674
|
+
|
|
2675
|
+
addHandlersForProgressCompletedDecodeOptions(progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null, decodeOptions: NSDictionary<string, any> | null): any | null;
|
|
2676
|
+
|
|
2677
|
+
cancel(token: any | null): boolean;
|
|
2678
|
+
|
|
2679
|
+
class(): typeof NSObject;
|
|
2680
|
+
|
|
2681
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2682
|
+
|
|
2683
|
+
initWithRequestInSessionOptions(request: NSURLRequest | null, session: NSURLSession | null, options: SDWebImageDownloaderOptions): this;
|
|
2684
|
+
|
|
2685
|
+
initWithRequestInSessionOptionsContext(request: NSURLRequest | null, session: NSURLSession | null, options: SDWebImageDownloaderOptions, context: NSDictionary<string, any> | null): this;
|
|
2686
|
+
|
|
2687
|
+
isEqual(object: any): boolean;
|
|
2688
|
+
|
|
2689
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2690
|
+
|
|
2691
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2692
|
+
|
|
2693
|
+
performSelector(aSelector: string): any;
|
|
2694
|
+
|
|
2695
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2696
|
+
|
|
2697
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2698
|
+
|
|
2699
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2700
|
+
|
|
2701
|
+
retainCount(): number;
|
|
2702
|
+
|
|
2703
|
+
self(): this;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
interface SDWebImageDownloaderOperationProtocol extends NSURLSessionDataDelegate, NSURLSessionTaskDelegate {
|
|
2707
|
+
|
|
2708
|
+
acceptableContentTypes?: NSSet<string> | null;
|
|
2709
|
+
|
|
2710
|
+
acceptableStatusCodes?: NSIndexSet | null;
|
|
2711
|
+
|
|
2712
|
+
credential?: NSURLCredential | null;
|
|
2713
|
+
|
|
2714
|
+
dataTask?: NSURLSessionTask | null;
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* @since 10.0
|
|
2718
|
+
*/
|
|
2719
|
+
metrics?: NSURLSessionTaskMetrics | null;
|
|
2720
|
+
|
|
2721
|
+
minimumProgressInterval?: number;
|
|
2722
|
+
|
|
2723
|
+
request: NSURLRequest | null;
|
|
2724
|
+
|
|
2725
|
+
response: NSURLResponse | null;
|
|
2726
|
+
|
|
2727
|
+
addHandlersForProgressCompleted(progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null): any | null;
|
|
2728
|
+
|
|
2729
|
+
addHandlersForProgressCompletedDecodeOptions(progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: boolean) => void | null, decodeOptions: NSDictionary<string, any> | null): any | null;
|
|
2730
|
+
|
|
2731
|
+
cancel(token: any | null): boolean;
|
|
2732
|
+
|
|
2733
|
+
initWithRequestInSessionOptions?(request: NSURLRequest | null, session: NSURLSession | null, options: SDWebImageDownloaderOptions): SDWebImageDownloaderOperationProtocol;
|
|
2734
|
+
|
|
2735
|
+
initWithRequestInSessionOptionsContext?(request: NSURLRequest | null, session: NSURLSession | null, options: SDWebImageDownloaderOptions, context: NSDictionary<string, any> | null): SDWebImageDownloaderOperationProtocol;
|
|
2736
|
+
}
|
|
2737
|
+
declare var SDWebImageDownloaderOperationProtocol: {
|
|
2738
|
+
|
|
2739
|
+
prototype: SDWebImageDownloaderOperationProtocol;
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
declare const enum SDWebImageDownloaderOptions {
|
|
2743
|
+
|
|
2744
|
+
LowPriority = 1,
|
|
2745
|
+
|
|
2746
|
+
ProgressiveLoad = 2,
|
|
2747
|
+
|
|
2748
|
+
UseNSURLCache = 4,
|
|
2749
|
+
|
|
2750
|
+
IgnoreCachedResponse = 8,
|
|
2751
|
+
|
|
2752
|
+
ContinueInBackground = 16,
|
|
2753
|
+
|
|
2754
|
+
HandleCookies = 32,
|
|
2755
|
+
|
|
2756
|
+
AllowInvalidSSLCertificates = 64,
|
|
2757
|
+
|
|
2758
|
+
HighPriority = 128,
|
|
2759
|
+
|
|
2760
|
+
ScaleDownLargeImages = 256,
|
|
2761
|
+
|
|
2762
|
+
AvoidDecodeImage = 512,
|
|
2763
|
+
|
|
2764
|
+
DecodeFirstFrameOnly = 1024,
|
|
2765
|
+
|
|
2766
|
+
PreloadAllFrames = 2048,
|
|
2767
|
+
|
|
2768
|
+
MatchAnimatedImageClass = 4096
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
declare class SDWebImageDownloaderRequestModifier extends NSObject implements SDWebImageDownloaderRequestModifierProtocol {
|
|
2772
|
+
|
|
2773
|
+
static alloc(): SDWebImageDownloaderRequestModifier; // inherited from NSObject
|
|
2774
|
+
|
|
2775
|
+
static new(): SDWebImageDownloaderRequestModifier; // inherited from NSObject
|
|
2776
|
+
|
|
2777
|
+
static requestModifierWithBlock(block: (p1: NSURLRequest) => NSURLRequest | null): SDWebImageDownloaderRequestModifier;
|
|
2778
|
+
|
|
2779
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2780
|
+
|
|
2781
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2782
|
+
|
|
2783
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2784
|
+
|
|
2785
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2786
|
+
|
|
2787
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2788
|
+
|
|
2789
|
+
readonly // inherited from NSObjectProtocol
|
|
2790
|
+
|
|
2791
|
+
constructor(o: { block: (p1: NSURLRequest) => NSURLRequest | null; });
|
|
2792
|
+
|
|
2793
|
+
constructor(o: { body: NSData | null; });
|
|
2794
|
+
|
|
2795
|
+
constructor(o: { headers: NSDictionary<string, string> | null; });
|
|
2796
|
+
|
|
2797
|
+
constructor(o: { method: string | null; });
|
|
2798
|
+
|
|
2799
|
+
constructor(o: { method: string | null; headers: NSDictionary<string, string> | null; body: NSData | null; });
|
|
2800
|
+
|
|
2801
|
+
class(): typeof NSObject;
|
|
2802
|
+
|
|
2803
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2804
|
+
|
|
2805
|
+
initWithBlock(block: (p1: NSURLRequest) => NSURLRequest | null): this;
|
|
2806
|
+
|
|
2807
|
+
initWithBody(body: NSData | null): this;
|
|
2808
|
+
|
|
2809
|
+
initWithHeaders(headers: NSDictionary<string, string> | null): this;
|
|
2810
|
+
|
|
2811
|
+
initWithMethod(method: string | null): this;
|
|
2812
|
+
|
|
2813
|
+
initWithMethodHeadersBody(method: string | null, headers: NSDictionary<string, string> | null, body: NSData | null): this;
|
|
2814
|
+
|
|
2815
|
+
isEqual(object: any): boolean;
|
|
2816
|
+
|
|
2817
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2818
|
+
|
|
2819
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2820
|
+
|
|
2821
|
+
modifiedRequestWithRequest(request: NSURLRequest): NSURLRequest | null;
|
|
2822
|
+
|
|
2823
|
+
performSelector(aSelector: string): any;
|
|
2824
|
+
|
|
2825
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2826
|
+
|
|
2827
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2828
|
+
|
|
2829
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2830
|
+
|
|
2831
|
+
retainCount(): number;
|
|
2832
|
+
|
|
2833
|
+
self(): this;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
interface SDWebImageDownloaderRequestModifierProtocol extends NSObjectProtocol {
|
|
2837
|
+
|
|
2838
|
+
modifiedRequestWithRequest(request: NSURLRequest): NSURLRequest | null;
|
|
2839
|
+
}
|
|
2840
|
+
declare var SDWebImageDownloaderRequestModifierProtocol: {
|
|
2841
|
+
|
|
2842
|
+
prototype: SDWebImageDownloaderRequestModifierProtocol;
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
declare class SDWebImageDownloaderResponseModifier extends NSObject implements SDWebImageDownloaderResponseModifierProtocol {
|
|
2846
|
+
|
|
2847
|
+
static alloc(): SDWebImageDownloaderResponseModifier; // inherited from NSObject
|
|
2848
|
+
|
|
2849
|
+
static new(): SDWebImageDownloaderResponseModifier; // inherited from NSObject
|
|
2850
|
+
|
|
2851
|
+
static responseModifierWithBlock(block: (p1: NSURLResponse) => NSURLResponse | null): SDWebImageDownloaderResponseModifier;
|
|
2852
|
+
|
|
2853
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2854
|
+
|
|
2855
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2856
|
+
|
|
2857
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2858
|
+
|
|
2859
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2860
|
+
|
|
2861
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2862
|
+
|
|
2863
|
+
readonly // inherited from NSObjectProtocol
|
|
2864
|
+
|
|
2865
|
+
constructor(o: { block: (p1: NSURLResponse) => NSURLResponse | null; });
|
|
2866
|
+
|
|
2867
|
+
constructor(o: { headers: NSDictionary<string, string> | null; });
|
|
2868
|
+
|
|
2869
|
+
constructor(o: { statusCode: number; });
|
|
2870
|
+
|
|
2871
|
+
constructor(o: { statusCode: number; version: string | null; headers: NSDictionary<string, string> | null; });
|
|
2872
|
+
|
|
2873
|
+
constructor(o: { version: string | null; });
|
|
2874
|
+
|
|
2875
|
+
class(): typeof NSObject;
|
|
2876
|
+
|
|
2877
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2878
|
+
|
|
2879
|
+
initWithBlock(block: (p1: NSURLResponse) => NSURLResponse | null): this;
|
|
2880
|
+
|
|
2881
|
+
initWithHeaders(headers: NSDictionary<string, string> | null): this;
|
|
2882
|
+
|
|
2883
|
+
initWithStatusCode(statusCode: number): this;
|
|
2884
|
+
|
|
2885
|
+
initWithStatusCodeVersionHeaders(statusCode: number, version: string | null, headers: NSDictionary<string, string> | null): this;
|
|
2886
|
+
|
|
2887
|
+
initWithVersion(version: string | null): this;
|
|
2888
|
+
|
|
2889
|
+
isEqual(object: any): boolean;
|
|
2890
|
+
|
|
2891
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2892
|
+
|
|
2893
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2894
|
+
|
|
2895
|
+
modifiedResponseWithResponse(response: NSURLResponse): NSURLResponse | null;
|
|
2896
|
+
|
|
2897
|
+
performSelector(aSelector: string): any;
|
|
2898
|
+
|
|
2899
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2900
|
+
|
|
2901
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2902
|
+
|
|
2903
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2904
|
+
|
|
2905
|
+
retainCount(): number;
|
|
2906
|
+
|
|
2907
|
+
self(): this;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
interface SDWebImageDownloaderResponseModifierProtocol extends NSObjectProtocol {
|
|
2911
|
+
|
|
2912
|
+
modifiedResponseWithResponse(response: NSURLResponse): NSURLResponse | null;
|
|
2913
|
+
}
|
|
2914
|
+
declare var SDWebImageDownloaderResponseModifierProtocol: {
|
|
2915
|
+
|
|
2916
|
+
prototype: SDWebImageDownloaderResponseModifierProtocol;
|
|
2917
|
+
};
|
|
2918
|
+
|
|
2919
|
+
declare const enum SDWebImageError {
|
|
2920
|
+
|
|
2921
|
+
InvalidURL = 1000,
|
|
2922
|
+
|
|
2923
|
+
BadImageData = 1001,
|
|
2924
|
+
|
|
2925
|
+
CacheNotModified = 1002,
|
|
2926
|
+
|
|
2927
|
+
BlackListed = 1003,
|
|
2928
|
+
|
|
2929
|
+
InvalidDownloadOperation = 2000,
|
|
2930
|
+
|
|
2931
|
+
InvalidDownloadStatusCode = 2001,
|
|
2932
|
+
|
|
2933
|
+
Cancelled = 2002,
|
|
2934
|
+
|
|
2935
|
+
InvalidDownloadResponse = 2003,
|
|
2936
|
+
|
|
2937
|
+
InvalidDownloadContentType = 2004
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2940
|
+
declare var SDWebImageErrorDomain: string;
|
|
2941
|
+
|
|
2942
|
+
declare var SDWebImageErrorDownloadContentTypeKey: string;
|
|
2943
|
+
|
|
2944
|
+
declare var SDWebImageErrorDownloadResponseKey: string;
|
|
2945
|
+
|
|
2946
|
+
declare var SDWebImageErrorDownloadStatusCodeKey: string;
|
|
2947
|
+
|
|
2948
|
+
interface SDWebImageIndicator extends NSObjectProtocol {
|
|
2949
|
+
|
|
2950
|
+
indicatorView: UIView;
|
|
2951
|
+
|
|
2952
|
+
startAnimatingIndicator(): void;
|
|
2953
|
+
|
|
2954
|
+
stopAnimatingIndicator(): void;
|
|
2955
|
+
|
|
2956
|
+
updateIndicatorProgress?(progress: number): void;
|
|
2957
|
+
}
|
|
2958
|
+
declare var SDWebImageIndicator: {
|
|
2959
|
+
|
|
2960
|
+
prototype: SDWebImageIndicator;
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
declare class SDWebImageLoadState extends NSObject {
|
|
2964
|
+
|
|
2965
|
+
static alloc(): SDWebImageLoadState; // inherited from NSObject
|
|
2966
|
+
|
|
2967
|
+
static new(): SDWebImageLoadState; // inherited from NSObject
|
|
2968
|
+
|
|
2969
|
+
progress: NSProgress | null;
|
|
2970
|
+
|
|
2971
|
+
url: NSURL | null;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
declare class SDWebImageManager extends NSObject {
|
|
2975
|
+
|
|
2976
|
+
static alloc(): SDWebImageManager; // inherited from NSObject
|
|
2977
|
+
|
|
2978
|
+
static new(): SDWebImageManager; // inherited from NSObject
|
|
2979
|
+
|
|
2980
|
+
cacheKeyFilter: SDWebImageCacheKeyFilterProtocol | null;
|
|
2981
|
+
|
|
2982
|
+
cacheSerializer: SDWebImageCacheSerializerProtocol | null;
|
|
2983
|
+
|
|
2984
|
+
delegate: SDWebImageManagerDelegate | null;
|
|
2985
|
+
|
|
2986
|
+
readonly imageCache: SDImageCacheProtocol;
|
|
2987
|
+
|
|
2988
|
+
readonly imageLoader: SDImageLoader;
|
|
2989
|
+
|
|
2990
|
+
optionsProcessor: SDWebImageOptionsProcessorProtocol | null;
|
|
2991
|
+
|
|
2992
|
+
readonly running: boolean;
|
|
2993
|
+
|
|
2994
|
+
transformer: SDImageTransformer | null;
|
|
2995
|
+
|
|
2996
|
+
static defaultImageCache: SDImageCacheProtocol | null;
|
|
2997
|
+
|
|
2998
|
+
static defaultImageLoader: SDImageLoader | null;
|
|
2999
|
+
|
|
3000
|
+
static readonly sharedManager: SDWebImageManager;
|
|
3001
|
+
|
|
3002
|
+
constructor(o: { cache: SDImageCacheProtocol; loader: SDImageLoader; });
|
|
3003
|
+
|
|
3004
|
+
cacheKeyForURL(url: NSURL | null): string | null;
|
|
3005
|
+
|
|
3006
|
+
cacheKeyForURLContext(url: NSURL | null, context: NSDictionary<string, any> | null): string | null;
|
|
3007
|
+
|
|
3008
|
+
cancelAll(): void;
|
|
3009
|
+
|
|
3010
|
+
initWithCacheLoader(cache: SDImageCacheProtocol, loader: SDImageLoader): this;
|
|
3011
|
+
|
|
3012
|
+
loadImageWithURLOptionsContextProgressCompleted(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: SDImageCacheType, p5: boolean, p6: NSURL | null) => void): SDWebImageCombinedOperation | null;
|
|
3013
|
+
|
|
3014
|
+
loadImageWithURLOptionsProgressCompleted(url: NSURL | null, options: SDWebImageOptions, progressBlock: (p1: number, p2: number, p3: NSURL | null) => void | null, completedBlock: (p1: UIImage | null, p2: NSData | null, p3: NSError | null, p4: SDImageCacheType, p5: boolean, p6: NSURL | null) => void): SDWebImageCombinedOperation | null;
|
|
3015
|
+
|
|
3016
|
+
removeAllFailedURLs(): void;
|
|
3017
|
+
|
|
3018
|
+
removeFailedURL(url: NSURL): void;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
interface SDWebImageManagerDelegate extends NSObjectProtocol {
|
|
3022
|
+
|
|
3023
|
+
imageManagerShouldBlockFailedURLWithError?(imageManager: SDWebImageManager, imageURL: NSURL, error: NSError): boolean;
|
|
3024
|
+
|
|
3025
|
+
imageManagerShouldDownloadImageForURL?(imageManager: SDWebImageManager, imageURL: NSURL): boolean;
|
|
3026
|
+
}
|
|
3027
|
+
declare var SDWebImageManagerDelegate: {
|
|
3028
|
+
|
|
3029
|
+
prototype: SDWebImageManagerDelegate;
|
|
3030
|
+
};
|
|
3031
|
+
|
|
3032
|
+
interface SDWebImageOperation extends NSObjectProtocol {
|
|
3033
|
+
|
|
3034
|
+
cancelled?: boolean;
|
|
3035
|
+
|
|
3036
|
+
cancel(): void;
|
|
3037
|
+
}
|
|
3038
|
+
declare var SDWebImageOperation: {
|
|
3039
|
+
|
|
3040
|
+
prototype: SDWebImageOperation;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
declare const enum SDWebImageOptions {
|
|
3044
|
+
|
|
3045
|
+
RetryFailed = 1,
|
|
3046
|
+
|
|
3047
|
+
LowPriority = 2,
|
|
3048
|
+
|
|
3049
|
+
ProgressiveLoad = 4,
|
|
3050
|
+
|
|
3051
|
+
RefreshCached = 8,
|
|
3052
|
+
|
|
3053
|
+
ContinueInBackground = 16,
|
|
3054
|
+
|
|
3055
|
+
HandleCookies = 32,
|
|
3056
|
+
|
|
3057
|
+
AllowInvalidSSLCertificates = 64,
|
|
3058
|
+
|
|
3059
|
+
HighPriority = 128,
|
|
3060
|
+
|
|
3061
|
+
DelayPlaceholder = 256,
|
|
3062
|
+
|
|
3063
|
+
TransformAnimatedImage = 512,
|
|
3064
|
+
|
|
3065
|
+
AvoidAutoSetImage = 1024,
|
|
3066
|
+
|
|
3067
|
+
ScaleDownLargeImages = 2048,
|
|
3068
|
+
|
|
3069
|
+
QueryMemoryData = 4096,
|
|
3070
|
+
|
|
3071
|
+
QueryMemoryDataSync = 8192,
|
|
3072
|
+
|
|
3073
|
+
QueryDiskDataSync = 16384,
|
|
3074
|
+
|
|
3075
|
+
FromCacheOnly = 32768,
|
|
3076
|
+
|
|
3077
|
+
FromLoaderOnly = 65536,
|
|
3078
|
+
|
|
3079
|
+
ForceTransition = 131072,
|
|
3080
|
+
|
|
3081
|
+
AvoidDecodeImage = 262144,
|
|
3082
|
+
|
|
3083
|
+
DecodeFirstFrameOnly = 524288,
|
|
3084
|
+
|
|
3085
|
+
PreloadAllFrames = 1048576,
|
|
3086
|
+
|
|
3087
|
+
MatchAnimatedImageClass = 2097152,
|
|
3088
|
+
|
|
3089
|
+
WaitStoreCache = 4194304,
|
|
3090
|
+
|
|
3091
|
+
TransformVectorImage = 8388608,
|
|
3092
|
+
|
|
3093
|
+
AvoidAutoCancelImage = 16777216,
|
|
3094
|
+
|
|
3095
|
+
WaitTransition = 33554432
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
declare class SDWebImageOptionsProcessor extends NSObject implements SDWebImageOptionsProcessorProtocol {
|
|
3099
|
+
|
|
3100
|
+
static alloc(): SDWebImageOptionsProcessor; // inherited from NSObject
|
|
3101
|
+
|
|
3102
|
+
static new(): SDWebImageOptionsProcessor; // inherited from NSObject
|
|
3103
|
+
|
|
3104
|
+
static optionsProcessorWithBlock(block: (p1: NSURL | null, p2: SDWebImageOptions, p3: NSDictionary<string, any> | null) => SDWebImageOptionsResult | null): SDWebImageOptionsProcessor;
|
|
3105
|
+
|
|
3106
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
3107
|
+
|
|
3108
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
3109
|
+
|
|
3110
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
3111
|
+
|
|
3112
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
3113
|
+
|
|
3114
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
3115
|
+
|
|
3116
|
+
readonly // inherited from NSObjectProtocol
|
|
3117
|
+
|
|
3118
|
+
constructor(o: { block: (p1: NSURL | null, p2: SDWebImageOptions, p3: NSDictionary<string, any> | null) => SDWebImageOptionsResult | null; });
|
|
3119
|
+
|
|
3120
|
+
class(): typeof NSObject;
|
|
3121
|
+
|
|
3122
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
3123
|
+
|
|
3124
|
+
initWithBlock(block: (p1: NSURL | null, p2: SDWebImageOptions, p3: NSDictionary<string, any> | null) => SDWebImageOptionsResult | null): this;
|
|
3125
|
+
|
|
3126
|
+
isEqual(object: any): boolean;
|
|
3127
|
+
|
|
3128
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
3129
|
+
|
|
3130
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
3131
|
+
|
|
3132
|
+
performSelector(aSelector: string): any;
|
|
3133
|
+
|
|
3134
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
3135
|
+
|
|
3136
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
3137
|
+
|
|
3138
|
+
processedResultForURLOptionsContext(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null): SDWebImageOptionsResult | null;
|
|
3139
|
+
|
|
3140
|
+
respondsToSelector(aSelector: string): boolean;
|
|
3141
|
+
|
|
3142
|
+
retainCount(): number;
|
|
3143
|
+
|
|
3144
|
+
self(): this;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
interface SDWebImageOptionsProcessorProtocol extends NSObjectProtocol {
|
|
3148
|
+
|
|
3149
|
+
processedResultForURLOptionsContext(url: NSURL | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null): SDWebImageOptionsResult | null;
|
|
3150
|
+
}
|
|
3151
|
+
declare var SDWebImageOptionsProcessorProtocol: {
|
|
3152
|
+
|
|
3153
|
+
prototype: SDWebImageOptionsProcessorProtocol;
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
declare class SDWebImageOptionsResult extends NSObject {
|
|
3157
|
+
|
|
3158
|
+
static alloc(): SDWebImageOptionsResult; // inherited from NSObject
|
|
3159
|
+
|
|
3160
|
+
static new(): SDWebImageOptionsResult; // inherited from NSObject
|
|
3161
|
+
|
|
3162
|
+
readonly context: NSDictionary<string, any> | null;
|
|
3163
|
+
|
|
3164
|
+
readonly options: SDWebImageOptions;
|
|
3165
|
+
|
|
3166
|
+
constructor(o: { options: SDWebImageOptions; context: NSDictionary<string, any> | null; });
|
|
3167
|
+
|
|
3168
|
+
initWithOptionsContext(options: SDWebImageOptions, context: NSDictionary<string, any> | null): this;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
declare class SDWebImagePrefetchToken extends NSObject implements SDWebImageOperation {
|
|
3172
|
+
|
|
3173
|
+
static alloc(): SDWebImagePrefetchToken; // inherited from NSObject
|
|
3174
|
+
|
|
3175
|
+
static new(): SDWebImagePrefetchToken; // inherited from NSObject
|
|
3176
|
+
|
|
3177
|
+
readonly urls: NSArray<NSURL> | null;
|
|
3178
|
+
|
|
3179
|
+
readonly cancelled: boolean; // inherited from SDWebImageOperation
|
|
3180
|
+
|
|
3181
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
3182
|
+
|
|
3183
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
3184
|
+
|
|
3185
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
3186
|
+
|
|
3187
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
3188
|
+
|
|
3189
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
3190
|
+
|
|
3191
|
+
readonly // inherited from NSObjectProtocol
|
|
3192
|
+
|
|
3193
|
+
cancel(): void;
|
|
3194
|
+
|
|
3195
|
+
class(): typeof NSObject;
|
|
3196
|
+
|
|
3197
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
3198
|
+
|
|
3199
|
+
isEqual(object: any): boolean;
|
|
3200
|
+
|
|
3201
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
3202
|
+
|
|
3203
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
3204
|
+
|
|
3205
|
+
performSelector(aSelector: string): any;
|
|
3206
|
+
|
|
3207
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
3208
|
+
|
|
3209
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
3210
|
+
|
|
3211
|
+
respondsToSelector(aSelector: string): boolean;
|
|
3212
|
+
|
|
3213
|
+
retainCount(): number;
|
|
3214
|
+
|
|
3215
|
+
self(): this;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
declare class SDWebImagePrefetcher extends NSObject {
|
|
3219
|
+
|
|
3220
|
+
static alloc(): SDWebImagePrefetcher; // inherited from NSObject
|
|
3221
|
+
|
|
3222
|
+
static new(): SDWebImagePrefetcher; // inherited from NSObject
|
|
3223
|
+
|
|
3224
|
+
/**
|
|
3225
|
+
* @since 8.0
|
|
3226
|
+
* @deprecated 100000
|
|
3227
|
+
*/
|
|
3228
|
+
context: NSDictionary<string, any> | null;
|
|
3229
|
+
|
|
3230
|
+
delegate: SDWebImagePrefetcherDelegate | null;
|
|
3231
|
+
|
|
3232
|
+
/**
|
|
3233
|
+
* @since 8.0
|
|
3234
|
+
* @deprecated 8.0
|
|
3235
|
+
*/
|
|
3236
|
+
delegateQueue: NSObject & OS_dispatch_queue;
|
|
3237
|
+
|
|
3238
|
+
readonly manager: SDWebImageManager;
|
|
3239
|
+
|
|
3240
|
+
maxConcurrentPrefetchCount: number;
|
|
3241
|
+
|
|
3242
|
+
/**
|
|
3243
|
+
* @since 8.0
|
|
3244
|
+
* @deprecated 100000
|
|
3245
|
+
*/
|
|
3246
|
+
options: SDWebImageOptions;
|
|
3247
|
+
|
|
3248
|
+
static readonly sharedImagePrefetcher: SDWebImagePrefetcher;
|
|
3249
|
+
|
|
3250
|
+
constructor(o: { imageManager: SDWebImageManager; });
|
|
3251
|
+
|
|
3252
|
+
cancelPrefetching(): void;
|
|
3253
|
+
|
|
3254
|
+
initWithImageManager(manager: SDWebImageManager): this;
|
|
3255
|
+
|
|
3256
|
+
prefetchURLs(urls: NSArray<NSURL> | NSURL[] | null): SDWebImagePrefetchToken | null;
|
|
3257
|
+
|
|
3258
|
+
prefetchURLsOptionsContextProgressCompleted(urls: NSArray<NSURL> | NSURL[] | null, options: SDWebImageOptions, context: NSDictionary<string, any> | null, progressBlock: (p1: number, p2: number) => void | null, completionBlock: (p1: number, p2: number) => void | null): SDWebImagePrefetchToken | null;
|
|
3259
|
+
|
|
3260
|
+
prefetchURLsProgressCompleted(urls: NSArray<NSURL> | NSURL[] | null, progressBlock: (p1: number, p2: number) => void | null, completionBlock: (p1: number, p2: number) => void | null): SDWebImagePrefetchToken | null;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
interface SDWebImagePrefetcherDelegate extends NSObjectProtocol {
|
|
3264
|
+
|
|
3265
|
+
imagePrefetcherDidFinishWithTotalCountSkippedCount?(imagePrefetcher: SDWebImagePrefetcher, totalCount: number, skippedCount: number): void;
|
|
3266
|
+
|
|
3267
|
+
imagePrefetcherDidPrefetchURLFinishedCountTotalCount?(imagePrefetcher: SDWebImagePrefetcher, imageURL: NSURL | null, finishedCount: number, totalCount: number): void;
|
|
3268
|
+
}
|
|
3269
|
+
declare var SDWebImagePrefetcherDelegate: {
|
|
3270
|
+
|
|
3271
|
+
prototype: SDWebImagePrefetcherDelegate;
|
|
3272
|
+
};
|
|
3273
|
+
|
|
3274
|
+
declare class SDWebImageProgressIndicator extends NSObject implements SDWebImageIndicator {
|
|
3275
|
+
|
|
3276
|
+
static alloc(): SDWebImageProgressIndicator; // inherited from NSObject
|
|
3277
|
+
|
|
3278
|
+
static new(): SDWebImageProgressIndicator; // inherited from NSObject
|
|
3279
|
+
|
|
3280
|
+
readonly indicatorView: UIProgressView;
|
|
3281
|
+
|
|
3282
|
+
static readonly barIndicator: SDWebImageProgressIndicator;
|
|
3283
|
+
|
|
3284
|
+
static readonly defaultIndicator: SDWebImageProgressIndicator;
|
|
3285
|
+
|
|
3286
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
3287
|
+
|
|
3288
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
3289
|
+
|
|
3290
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
3291
|
+
|
|
3292
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
3293
|
+
|
|
3294
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
3295
|
+
|
|
3296
|
+
readonly // inherited from NSObjectProtocol
|
|
3297
|
+
|
|
3298
|
+
class(): typeof NSObject;
|
|
3299
|
+
|
|
3300
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
3301
|
+
|
|
3302
|
+
isEqual(object: any): boolean;
|
|
3303
|
+
|
|
3304
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
3305
|
+
|
|
3306
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
3307
|
+
|
|
3308
|
+
performSelector(aSelector: string): any;
|
|
3309
|
+
|
|
3310
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
3311
|
+
|
|
3312
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
3313
|
+
|
|
3314
|
+
respondsToSelector(aSelector: string): boolean;
|
|
3315
|
+
|
|
3316
|
+
retainCount(): number;
|
|
3317
|
+
|
|
3318
|
+
self(): this;
|
|
3319
|
+
|
|
3320
|
+
startAnimatingIndicator(): void;
|
|
3321
|
+
|
|
3322
|
+
stopAnimatingIndicator(): void;
|
|
3323
|
+
|
|
3324
|
+
updateIndicatorProgress(progress: number): void;
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
declare var SDWebImageProgressUnitCountUnknown: number;
|
|
3328
|
+
|
|
3329
|
+
declare class SDWebImageTransition extends NSObject {
|
|
3330
|
+
|
|
3331
|
+
static alloc(): SDWebImageTransition; // inherited from NSObject
|
|
3332
|
+
|
|
3333
|
+
static curlDownTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3334
|
+
|
|
3335
|
+
static curlUpTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3336
|
+
|
|
3337
|
+
static fadeTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3338
|
+
|
|
3339
|
+
static flipFromBottomTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3340
|
+
|
|
3341
|
+
static flipFromLeftTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3342
|
+
|
|
3343
|
+
static flipFromRightTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3344
|
+
|
|
3345
|
+
static flipFromTopTransitionWithDuration(duration: number): SDWebImageTransition;
|
|
3346
|
+
|
|
3347
|
+
static new(): SDWebImageTransition; // inherited from NSObject
|
|
3348
|
+
|
|
3349
|
+
animationOptions: UIViewAnimationOptions;
|
|
3350
|
+
|
|
3351
|
+
animations: (p1: UIView, p2: UIImage | null) => void | null;
|
|
3352
|
+
|
|
3353
|
+
avoidAutoSetImage: boolean;
|
|
3354
|
+
|
|
3355
|
+
completion: (p1: boolean) => void | null;
|
|
3356
|
+
|
|
3357
|
+
duration: number;
|
|
3358
|
+
|
|
3359
|
+
prepares: (p1: UIView, p2: UIImage | null, p3: NSData | null, p4: SDImageCacheType, p5: NSURL | null) => void | null;
|
|
3360
|
+
|
|
3361
|
+
static readonly curlDownTransition: SDWebImageTransition;
|
|
3362
|
+
|
|
3363
|
+
static readonly curlUpTransition: SDWebImageTransition;
|
|
3364
|
+
|
|
3365
|
+
static readonly fadeTransition: SDWebImageTransition;
|
|
3366
|
+
|
|
3367
|
+
static readonly flipFromBottomTransition: SDWebImageTransition;
|
|
3368
|
+
|
|
3369
|
+
static readonly flipFromLeftTransition: SDWebImageTransition;
|
|
3370
|
+
|
|
3371
|
+
static readonly flipFromRightTransition: SDWebImageTransition;
|
|
3372
|
+
|
|
3373
|
+
static readonly flipFromTopTransition: SDWebImageTransition;
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
declare var SDWebImageVersionNumber: number;
|
|
3377
|
+
|
|
3378
|
+
declare var SDWebImageVersionString: interop.Reference<number>;
|