Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.
BufferedItemsManager
The BufferedItemsManager
class is used to manage the buffered items. It provides methods to get and set the maximum number of buffer items and to get buffer items.
Name | Description |
---|---|
getMaxBufferedItems() | Gets the buffered recognized character items. |
setMaxBufferedItems() | Sets the maximum number of buffered items. |
getBufferedCharacterItemSet() | Gets the buffered recognized character items. |
getMaxBufferedItems
Gets the maximum number of buffered items.
Syntax
getMaxBufferedItems(): number;
Parameters
None.
Return Value
Returns the max count of buffered items.
Code snippet
router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
const BufferedItemsManager = router.getBufferedItemsManager();
const MaxBufferedItemsCount = BufferedItemsManager.getMaxBufferedItems();
console.log(MaxBufferedItemsCount);
setMaxBufferedItems
Sets the maximum number of buffered items.
Syntax
setMaxBufferedItems(count: number): void;
Parameters
count
: the max number of BufferedItems
.
Return Value
None.
Code snippet
router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
const BufferedItemsManager = router.getBufferedItemsManager();
//set MaxBufferedItems count to 5
BufferedItemsManager.setMaxBufferedItems(5);
getBufferedCharacterItemSet
Gets the buffered character items.
getBufferedCharacterItemSet(): DLR.BufferedCharacterItemSet
Parameters
None.
Return value
The BufferedCharacterItemSet
.
See Also