Tuya iOS Smart Life App SDK 5.15.0
ThingEncryptImageDownloader Class Reference

#import <ThingEncryptImageDownloader.h>

Inheritance diagram for ThingEncryptImageDownloader:

Instance Methods

(void) - downloadEncryptImageWithPath:encryptKey:completed:
 
(void) - downloadImageWithURL:completed:
 
(void) - clearAllCache
 Clear all cached files. More...
 
(NSData *) - getCachedImageData:
 
(void) - downloadEncryptImageWithPath:encryptKey:completed:
 
(void) - downloadImageWithURL:completed:
 
(void) - clearAllCache
 Clear all cached files. More...
 
(NSData *) - getCachedImageData:
 
(void) - downloadEncryptImageWithPath:encryptKey:completed:
 
(void) - downloadImageWithURL:completed:
 
(void) - clearAllCache
 Clear all cached files. More...
 
(NSData *) - getCachedImageData:
 
(void) - downloadEncryptImageWithPath:encryptKey:completed:
 
(void) - downloadImageWithURL:completed:
 
(void) - clearAllCache
 Clear all cached files. More...
 
(NSData *) - getCachedImageData:
 

Class Methods

(instancetype) + sharedManager
 
(instancetype) + sharedManager
 
(instancetype) + sharedManager
 
(instancetype) + sharedManager
 

Properties

ThingEncryptWebImageManagermanager
 

Detailed Description

Definition at line 15 of file ThingEncryptImageDownloader.h.

Method Documentation

◆ clearAllCache [1/4]

- (void) clearAllCache

Clear all cached files.

◆ clearAllCache [2/4]

- (void) clearAllCache

Clear all cached files.

◆ clearAllCache [3/4]

- (void) clearAllCache

Clear all cached files.

◆ clearAllCache [4/4]

- (void) clearAllCache

Clear all cached files.

◆ downloadEncryptImageWithPath:encryptKey:completed: [1/4]

- (void) downloadEncryptImageWithPath: (NSString *)  imagePath
encryptKey: (nullable NSString *)  encryptKey
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imagePath and encryptKey

Parameters
imagePathimage url
encryptKeyencrypt key string. Can be nil if the image is not encryptd
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadEncryptImageWithPath:encryptKey:completed: [2/4]

- (void) downloadEncryptImageWithPath: (NSString *)  imagePath
encryptKey: (nullable NSString *)  encryptKey
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imagePath and encryptKey

Parameters
imagePathimage url
encryptKeyencrypt key string. Can be nil if the image is not encryptd
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadEncryptImageWithPath:encryptKey:completed: [3/4]

- (void) downloadEncryptImageWithPath: (NSString *)  imagePath
encryptKey: (nullable NSString *)  encryptKey
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imagePath and encryptKey

Parameters
imagePathimage url
encryptKeyencrypt key string. Can be nil if the image is not encryptd
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadEncryptImageWithPath:encryptKey:completed: [4/4]

- (void) downloadEncryptImageWithPath: (NSString *)  imagePath
encryptKey: (nullable NSString *)  encryptKey
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imagePath and encryptKey

Parameters
imagePathimage url
encryptKeyencrypt key string. Can be nil if the image is not encryptd
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadImageWithURL:completed: [1/4]

- (void) downloadImageWithURL: (NSURL *)  imageURL
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imageURL

Parameters
imageURLimage url
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadImageWithURL:completed: [2/4]

- (void) downloadImageWithURL: (NSURL *)  imageURL
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imageURL

Parameters
imageURLimage url
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadImageWithURL:completed: [3/4]

- (void) downloadImageWithURL: (NSURL *)  imageURL
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imageURL

Parameters
imageURLimage url
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ downloadImageWithURL:completed: [4/4]

- (void) downloadImageWithURL: (NSURL *)  imageURL
completed: (nullable ThingEncryptWebImageCompletionBlock completedBlock 

Downloads the image at the given imageURL

Parameters
imageURLimage url
completedBlockA block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. The second parameter is the original image url. The third parameter is a Boolean indicating if the image was retrieved from the local cache or from the network. The fourth parameter is current download stage of the download image. In case of error the image parameter is nil and the fifth parameter may contain an NSError.

◆ getCachedImageData: [1/4]

- (NSData *) getCachedImageData: (NSString *)  imagePath

Get original image data from cache

Parameters
imagePathA url string of image separate from ?. If the image's url contain the symbol ?, cut out the first part of the string.

◆ getCachedImageData: [2/4]

- (NSData *) getCachedImageData: (NSString *)  imagePath

Get original image data from cache

Parameters
imagePathA url string of image separate from ?. If the image's url contain the symbol ?, cut out the first part of the string.

◆ getCachedImageData: [3/4]

- (NSData *) getCachedImageData: (NSString *)  imagePath

Get original image data from cache

Parameters
imagePathA url string of image separate from ?. If the image's url contain the symbol ?, cut out the first part of the string.

◆ getCachedImageData: [4/4]

- (NSData *) getCachedImageData: (NSString *)  imagePath

Get original image data from cache

Parameters
imagePathA url string of image separate from ?. If the image's url contain the symbol ?, cut out the first part of the string.

◆ sharedManager [1/4]

+ (instancetype) sharedManager

◆ sharedManager [2/4]

+ (instancetype) sharedManager

◆ sharedManager [3/4]

+ (instancetype) sharedManager

◆ sharedManager [4/4]

+ (instancetype) sharedManager

Property Documentation

◆ manager

- (ThingEncryptWebImageManager *) manager
readwritenonatomicstrong

Definition at line 17 of file ThingEncryptImageDownloader.h.


The documentation for this class was generated from the following files: