Tuya iOS Smart Life App SDK 5.15.0
ThingEncryptWebImageOperation Class Reference

#import <ThingEncryptWebImageOperation.h>

Inheritance diagram for ThingEncryptWebImageOperation:

Instance Methods

(instancetype) - initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion:
 
(instancetype) - initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion:
 
(instancetype) - initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion:
 
(instancetype) - initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion:
 

Properties

NSURLRequest * request
 The image URL request. More...
 
NSURLResponse * response
 The response for request. More...
 
ThingEncryptImageCachecache
 The image cache. More...
 
NSString * cacheKey
 The image cache key. More...
 
ThingEncryptWebImageOptions options
 The operation's option. More...
 
BOOL shouldUseCredentialStorage
 
NSURLCredential * credential
 

Detailed Description

Definition at line 15 of file ThingEncryptWebImageOperation.h.

Method Documentation

◆ initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion: [1/4]

- (instancetype) initWithRequest: (NSURLRequest *)  request
options: (ThingEncryptWebImageOptions)  options
cache: (nullable ThingEncryptImageCache *)  cache
cacheKey: (nullable NSString *)  cacheKey
scaledWidth: (NSInteger)  scaledWidth
progress: (nullable ThingEncryptWebImageProgressBlock progress
completion: (nullable ThingEncryptWebImageCompletionBlock completion 

Creates and returns a new operation.

You should call start to execute this operation, or you can add the operation to an operation queue.

Parameters
requestThe Image request. This value should not be nil.
optionsA mask to specify options to use for this operation.
cacheAn image cache. Pass nil to avoid image cache.
cacheKeyAn image cache key. Pass nil to avoid image cache.
scaledWidthThe image will be scaled to the specified width, and the height will be adjusted proportionally.
progressA block invoked in image fetch progress.
completionA block invoked when image fetch finished or cancelled.
Returns
The image request opeartion, or nil if an error occurs.

◆ initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion: [2/4]

- (instancetype) initWithRequest: (NSURLRequest *)  request
options: (ThingEncryptWebImageOptions)  options
cache: (nullable ThingEncryptImageCache *)  cache
cacheKey: (nullable NSString *)  cacheKey
scaledWidth: (NSInteger)  scaledWidth
progress: (nullable ThingEncryptWebImageProgressBlock progress
completion: (nullable ThingEncryptWebImageCompletionBlock completion 

Creates and returns a new operation.

You should call start to execute this operation, or you can add the operation to an operation queue.

Parameters
requestThe Image request. This value should not be nil.
optionsA mask to specify options to use for this operation.
cacheAn image cache. Pass nil to avoid image cache.
cacheKeyAn image cache key. Pass nil to avoid image cache.
scaledWidthThe image will be scaled to the specified width, and the height will be adjusted proportionally.
progressA block invoked in image fetch progress.
completionA block invoked when image fetch finished or cancelled.
Returns
The image request opeartion, or nil if an error occurs.

◆ initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion: [3/4]

- (instancetype) initWithRequest: (NSURLRequest *)  request
options: (ThingEncryptWebImageOptions)  options
cache: (nullable ThingEncryptImageCache *)  cache
cacheKey: (nullable NSString *)  cacheKey
scaledWidth: (NSInteger)  scaledWidth
progress: (nullable ThingEncryptWebImageProgressBlock progress
completion: (nullable ThingEncryptWebImageCompletionBlock completion 

Creates and returns a new operation.

You should call start to execute this operation, or you can add the operation to an operation queue.

Parameters
requestThe Image request. This value should not be nil.
optionsA mask to specify options to use for this operation.
cacheAn image cache. Pass nil to avoid image cache.
cacheKeyAn image cache key. Pass nil to avoid image cache.
scaledWidthThe image will be scaled to the specified width, and the height will be adjusted proportionally.
progressA block invoked in image fetch progress.
completionA block invoked when image fetch finished or cancelled.
Returns
The image request opeartion, or nil if an error occurs.

◆ initWithRequest:options:cache:cacheKey:scaledWidth:progress:completion: [4/4]

- (instancetype) initWithRequest: (NSURLRequest *)  request
options: (ThingEncryptWebImageOptions)  options
cache: (nullable ThingEncryptImageCache *)  cache
cacheKey: (nullable NSString *)  cacheKey
scaledWidth: (NSInteger)  scaledWidth
progress: (nullable ThingEncryptWebImageProgressBlock progress
completion: (nullable ThingEncryptWebImageCompletionBlock completion 

Creates and returns a new operation.

You should call start to execute this operation, or you can add the operation to an operation queue.

Parameters
requestThe Image request. This value should not be nil.
optionsA mask to specify options to use for this operation.
cacheAn image cache. Pass nil to avoid image cache.
cacheKeyAn image cache key. Pass nil to avoid image cache.
scaledWidthThe image will be scaled to the specified width, and the height will be adjusted proportionally.
progressA block invoked in image fetch progress.
completionA block invoked when image fetch finished or cancelled.
Returns
The image request opeartion, or nil if an error occurs.

Property Documentation

◆ cache

- (ThingEncryptImageCache *) cache
readnonatomicstrong

The image cache.

Definition at line 19 of file ThingEncryptWebImageOperation.h.

◆ cacheKey

- (NSString *) cacheKey
readnonatomicstrong

The image cache key.

Definition at line 20 of file ThingEncryptWebImageOperation.h.

◆ credential

- (NSURLCredential *) credential
readwritenonatomicstrong

The credential used for authentication challenges in -connection:didReceiveAuthenticationChallenge:.

@discussion This will be overridden by any shared credentials that exist for the username or password of the request URL, if present.

Definition at line 38 of file ThingEncryptWebImageOperation.h.

◆ options

- (ThingEncryptWebImageOptions) options
readnonatomicassign

The operation's option.

Definition at line 21 of file ThingEncryptWebImageOperation.h.

◆ request

- (NSURLRequest *) request
readnonatomicstrong

The image URL request.

Definition at line 17 of file ThingEncryptWebImageOperation.h.

◆ response

- (NSURLResponse *) response
readnonatomicstrong

The response for request.

Definition at line 18 of file ThingEncryptWebImageOperation.h.

◆ shouldUseCredentialStorage

- (BOOL) shouldUseCredentialStorage
readwritenonatomicassign

Whether the URL connection should consult the credential storage for authenticating the connection. Default is YES.

@discussion This is the value that is returned in the NSURLConnectionDelegate method -connectionShouldUseCredentialStorage:.

Definition at line 30 of file ThingEncryptWebImageOperation.h.


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