@nativescript-community/ui-image 4.3.26 → 4.3.27

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