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