Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Resource Base
Table of contents

DCEFeedback

With DCEFeedback APIs, user can trigger feedback on the device to respond for some specific events.

@interface DCEFeedback : NSObject
Method Description
vibrate Trigger a vibration when the method is called.
beep Trigger a beep when the method is called.

vibrate

Trigger a vibrate when the method is called.

+ (void)vibrate;

Code Snippet

  • Objective-C
  • Swift
  1. [DCEFeedback vibrate];
    // For example, if `vibrate` is called in the TextResultCallback of DBR, the device will trigger a vibration each time when barcode result is detected.
    - (void)textResultCallback:(NSInteger)frameId imageData:(iImageData *)imageData results:(NSArray<iTextResult *> *)results{
       [DCEFeedback vibrate];
    }
    
  2. DCEFeedback.vibrate
    // For example, if `vibrate` is called in the TextResultCallback of DBR, the device will trigger a vibration each time when barcode result is detected.
    func textResultCallback(_ frameId: Int, imageData: iImageData, results: [iTextResult]?) {
       DCEFeedback.beep()
    }
    

beep

Trigger a beep when the method is called.

+ (void)beep;

Code Snippet

  • Objective-C
  • Swift
  1. [DCEFeedback beep];
    // For example, if `beep` is called in the TextResultCallback of DBR, the device will trigger a beep each time when barcode result is detected.
    - (void)textResultCallback:(NSInteger)frameId imageData:(iImageData *)imageData results:(NSArray<iTextResult *> *)results{
       [DCEFeedback beep];
    }
    
  2. DCEFeedback.beep()
    // For example, if `beep` is called in the TextResultCallback of DBR, the device will trigger a beep each time when barcode result is detected.
    func textResultCallback(_ frameId: Int, imageData: iImageData, results: [iTextResult]?) {
       DCEFeedback.beep()
    }
    

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.1.0
    • Version 2.0.0
    • Version 1.0.3
    • Version 1.0.1
    • Version 1.0.0
    Change +
    © 2003–2022 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support