Tuya iOS Smart Life App SDK 5.15.0
ThingEncryptFrameImage Class Reference

#import <ThingEncryptFrameImage.h>

Inheritance diagram for ThingEncryptFrameImage:
<ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage>

Instance Methods

(nullable instancetype) - initWithImagePaths:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImagePaths:frameDurations:loopCount:
 
(nullable instancetype) - initWithImageDataArray:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImageDataArray:frameDurations:loopCount:
 
(nullable instancetype) - initWithImagePaths:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImagePaths:frameDurations:loopCount:
 
(nullable instancetype) - initWithImageDataArray:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImageDataArray:frameDurations:loopCount:
 
(nullable instancetype) - initWithImagePaths:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImagePaths:frameDurations:loopCount:
 
(nullable instancetype) - initWithImageDataArray:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImageDataArray:frameDurations:loopCount:
 
(nullable instancetype) - initWithImagePaths:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImagePaths:frameDurations:loopCount:
 
(nullable instancetype) - initWithImageDataArray:oneFrameDuration:loopCount:
 
(nullable instancetype) - initWithImageDataArray:frameDurations:loopCount:
 
- Instance Methods inherited from <ThingEncryptAnimatedImage>
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 

Detailed Description

Definition at line 14 of file ThingEncryptFrameImage.h.

Method Documentation

◆ initWithImageDataArray:frameDurations:loopCount: [1/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
frameDurations: (NSArray *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:frameDurations:loopCount: [2/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
frameDurations: (NSArray *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:frameDurations:loopCount: [3/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
frameDurations: (NSArray *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:frameDurations:loopCount: [4/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
frameDurations: (NSArray *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:oneFrameDuration:loopCount: [1/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:oneFrameDuration:loopCount: [2/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:oneFrameDuration:loopCount: [3/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImageDataArray:oneFrameDuration:loopCount: [4/4]

- (nullable instancetype) initWithImageDataArray: (NSArray< NSData * > *)  dataArray
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from an array of data.

Parameters
dataArrayAn array of NSData objects.
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:frameDurations:loopCount: [1/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/frame1.png",@"/ani/frame2.png",@"/ani/frame3.png"]
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:frameDurations:loopCount: [2/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/frame1.png",@"/ani/frame2.png",@"/ani/frame3.png"]
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:frameDurations:loopCount: [3/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/frame1.png",@"/ani/frame2.png",@"/ani/frame3.png"]
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:frameDurations:loopCount: [4/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/frame1.png",@"/ani/frame2.png",@"/ani/frame3.png"]
frameDurationsAn array of NSNumber objects, contains the duration (in seconds) per frame. e.g. @[@0.1, @0.2, @0.3];
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:oneFrameDuration:loopCount: [1/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/1.png",@"/ani/2.png",@"/ani/3.png"]
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:oneFrameDuration:loopCount: [2/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/1.png",@"/ani/2.png",@"/ani/3.png"]
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:oneFrameDuration:loopCount: [3/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/1.png",@"/ani/2.png",@"/ani/3.png"]
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

◆ initWithImagePaths:oneFrameDuration:loopCount: [4/4]

- (nullable instancetype) initWithImagePaths: (NSArray< NSString * > *)  paths
oneFrameDuration: (NSTimeInterval)  oneFrameDuration
loopCount: (NSUInteger)  loopCount 

Create a frame animated image from files.

Parameters
pathsAn array of NSString objects, contains the full or partial path to each image file. e.g. @["/ani/1.png",@"/ani/2.png",@"/ani/3.png"]
oneFrameDurationThe duration (in seconds) per frame.
loopCountThe animation loop count, 0 means infinite.
Returns
An initialized ThingEncryptFrameImage object, or nil when an error occurs.

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