DSProactiveImageSourceAdapter
The DSProactiveImageSourceAdapter
class is an abstract base class that extends the DSImageSourceAdapter
class. It provides an interface for proactively fetching images in a separate thread.
Definition
Assembly: DynamsoftUtility.xcframework
- Objective-C
- Swift
@interface DSProactiveImageSourceAdapter : DSImageSourceAdapter
class ProactiveImageSourceAdapter: ImageSourceAdapter
Methods
Method | Description |
---|---|
setImageFetchInterval |
Sets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer. |
getImageFetchInterval |
Gets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer. |
setImageFetchInterval
Sets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer.
- Objective-C
- Swift
-(void)setImageFetchInterval:(NSInteger)milliseconds;
func setImageFetchInterval(milliseconds: Int)
Parameters
[in] milliseconds
: The time interval in milliseconds.
getImageFetchInterval
Gets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer.
- Objective-C
- Swift
-(NSInteger)getImageFetchInterval;
func getImageFetchInterval() -> Int
Return Value
The time interval in milliseconds.