Resource Base
Table of contents

CaptureVisionRouter Instantiate

Name Description
static createInstance() Initializes a new instance of the CaptureVisionRouter class.
dispose() Releases all resources used by the CaptureVisionRouter instance.
disposed Returns whether the CaptureVisionRouter instance has been disposed of.

createInstance

Initializes a new instance of the CaptureVisionRouter class.

Syntax

createInstance(): Promise<CaptureVisionRouter>;

Parameter

None.

Return value

A promise that resolves with the initialized CaptureVisionRouter instance.

Code snippet

let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();

dispose

Releases all resources used by the CaptureVisionRouter instance.

Syntax

dispose(): Promise<void>;

Parameter

None.

Return value

A promise that resolves when the resources have been successfully released.

Code snippet

let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
// Use the router to perform a job.
// ...
// Release the resources after the job is finished.
router.dispose();

disposed

Returns whether the CaptureVisionRouter instance has been disposed of.

Syntax

disposed: boolean;

Parameter

None.

Return value

Boolean indicating whether the CaptureVisionRouter instance has been disposed of.

Code snippet

if(router.disposed){
    console.log("The router has been disposed of.");
} else {
    // Use the router to perform a job.
}

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(2.2.10)
  • Version 2.x
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support