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:

version 2.3.20

  • Latest version
  • Version 4.x
    • Version 4.2.0
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.0.3
    • Version 3.0.2
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.21
    • Version 2.3.20
    • Version 2.3.12
    • Version 2.3.11
    • Version 2.3.10
    • Version 2.3.5
    • Version 2.3.4
    • Version 2.3.3
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.1
    • Version 2.0.0
Change +