Auxiliary APIs
Name | Description |
---|---|
getVersion() | Returns the version of the library. |
detectEnvironment() | Returns a report on the current running environments. |
getVersion
Returns the version of the library.
static getVersion(): string
Parameters
None.
Return value
The version string of the library.
Code Snippet
Dynamsoft.DCE.CameraEnhancer.getVersion(); // 'JS 1.0.0.20210628'
detectEnvironment
Returns a report (in JSON) on the current running environments.
static detectEnvironment(): Promise<any>
Parameters
None.
Return value
A JSON object about the running environment. For example
{
"wasm": true,
"worker": true,
"getUserMedia": true,
"camera": true,
"browser": "Chrome",
"version": 90,
"OS": "Windows"
}
Code Snippet
await Dynamsoft.DCE.CameraEnhancer.detectEnvironment();