![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingEncryptWebImageOperation.h>
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... | |
ThingEncryptImageCache * | cache |
The image cache. More... | |
NSString * | cacheKey |
The image cache key. More... | |
ThingEncryptWebImageOptions | options |
The operation's option. More... | |
BOOL | shouldUseCredentialStorage |
NSURLCredential * | credential |
Definition at line 15 of file ThingEncryptWebImageOperation.h.
- (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.
request | The Image request. This value should not be nil. |
options | A mask to specify options to use for this operation. |
cache | An image cache. Pass nil to avoid image cache. |
cacheKey | An image cache key. Pass nil to avoid image cache. |
scaledWidth | The image will be scaled to the specified width, and the height will be adjusted proportionally. |
progress | A block invoked in image fetch progress. |
completion | A block invoked when image fetch finished or cancelled. |
- (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.
request | The Image request. This value should not be nil. |
options | A mask to specify options to use for this operation. |
cache | An image cache. Pass nil to avoid image cache. |
cacheKey | An image cache key. Pass nil to avoid image cache. |
scaledWidth | The image will be scaled to the specified width, and the height will be adjusted proportionally. |
progress | A block invoked in image fetch progress. |
completion | A block invoked when image fetch finished or cancelled. |
- (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.
request | The Image request. This value should not be nil. |
options | A mask to specify options to use for this operation. |
cache | An image cache. Pass nil to avoid image cache. |
cacheKey | An image cache key. Pass nil to avoid image cache. |
scaledWidth | The image will be scaled to the specified width, and the height will be adjusted proportionally. |
progress | A block invoked in image fetch progress. |
completion | A block invoked when image fetch finished or cancelled. |
- (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.
request | The Image request. This value should not be nil. |
options | A mask to specify options to use for this operation. |
cache | An image cache. Pass nil to avoid image cache. |
cacheKey | An image cache key. Pass nil to avoid image cache. |
scaledWidth | The image will be scaled to the specified width, and the height will be adjusted proportionally. |
progress | A block invoked in image fetch progress. |
completion | A block invoked when image fetch finished or cancelled. |
|
readnonatomicstrong |
The image cache.
Definition at line 19 of file ThingEncryptWebImageOperation.h.
|
readnonatomicstrong |
The image cache key.
Definition at line 20 of file ThingEncryptWebImageOperation.h.
|
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.
|
readnonatomicassign |
The operation's option.
Definition at line 21 of file ThingEncryptWebImageOperation.h.
|
readnonatomicstrong |
The image URL request.
Definition at line 17 of file ThingEncryptWebImageOperation.h.
|
readnonatomicstrong |
The response for request.
Definition at line 18 of file ThingEncryptWebImageOperation.h.
|
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.