Table of contents

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
  1. @interface DSProactiveImageSourceAdapter : DSImageSourceAdapter
    
  2. 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
  1. -(void)setImageFetchInterval:(NSInteger)milliseconds;
    
  2. 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
  1. -(NSInteger)getImageFetchInterval;
    
  2. func getImageFetchInterval() -> Int
    

Return Value

The time interval in milliseconds.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: