Resource Base
Table of contents

CameraTestResponse

The CameraTestResponse interface is designed to encapsulate the response from a camera test operation by the method Dynamsoft.DCE.CameraEnhancer.testCameraAccess(), providing a standardized format for assessing the outcome.

export interface CameraTestResponse {
    /**
     * 
     */
    ok: boolean;
    /**
     * Provides a descriptive message about the outcome of the camera test.
     * - For a successful test (`ok: true`), this message might confirm the operational status or provide additional success-related information.
     * - For a failed test (`ok: false`), it typically contains details about the error or issue encountered during the test, which could be useful for troubleshooting or informing the user about the failure reason.
     */
    message: string;
}

ok

Indicates the success or failure of the camera test.

  • true signifies that the test was successful, meaning the camera is operational and ready to use.
  • false implies that the test failed, indicating an issue with accessing or using the camera.

message

Provides a descriptive message about the outcome of the camera test.

  • For a successful test (ok: true), this message might confirm the operational status or provide additional success-related information.
  • For a failed test (ok: false), it typically contains details about the error or issue encountered during the test, which could be useful for troubleshooting or informing the user about the failure reason.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

latest version

    • Latest version(4.0.2)
    • Version 4.x
      • Version 4.0.1
      • Version 4.0.0
    • Version 3.x
      • Version 3.3.10
      • Version 3.3.9
      • Version 3.3.8
      • Version 3.3.7
      • Version 3.3.6
      • Version 3.3.5
      • Version 3.3.4
      • Version 3.3.3
      • Version 3.3.2
      • Version 3.3.1
      • Version 3.3.0
      • Version 3.2.0
      • Version 3.1.0
      • Version 3.0.1
      • Version 3.0.0
    • Version 2.x
      • Version 2.3.5
      • Version 2.3.2
      • Version 2.3.1
      • Version 2.3.0
      • Version 2.1.4
      • Version 2.1.3
      • Version 2.1.0
      • Version 2.0.0
    Change +