CipherLab RK25 User Manual page 33

Android programming
Hide thumbs Also See for RK25:
Table of Contents

Advertisement

Return Value
If successful, it returns ClResult.S_OK.
Otherwise, it returns ClResult.S_ERR.
See Also
Set_NotificationParams
Set_NotificationParams
Purpose
Configures notification settings.
Syntax
ClResult Set_NotificationParams (NotificationParams settings)
Parameters
A default value comes with an asterisk "*".
BeepType ReaderBeep
[in][out] A value that specifies the sound to play.
BeepType.Mute
BeepType.Default
BeepType.Hwandsw
BeepType.MenuPop
BeepType.MsgBox
BeepType.Notify
BeepType.VoiceBeep
BeepType.Alarm2
BeepType.Alarm3
BeepType.LowBatt
Enable_State enableVibrator
[in][out] A value that specifies whether to vibrate for a successful reading.
Enable_State.FALSE *Disables Vibrator
Enable_State.TRUE
int vibrationCounter
[in][out] A value that specifies how long to vibrate.
0
1 ~ 10
int ledDuration
[in][out] A value that specifies whether to light the LED indicator for a successful
reading.
0
1 ~ 5000
Example
NotificationParams settings = new NotificationParams();
settings.enableReaderBeep = Enable_State.TRUE;
settings.enableVibrator = Enable_State.TRUE;
settings.ledDuration = 500; //ms
settings.vibrationCounter = 1; //500ms * count
mReaderManager.Set_NotificationParams(settings);
Enables Vibrator
*No vibration
in increments of 0.5 seconds
Disables
*500, Enables LED and sets lighting duration (millisecond)
Chapter 1 Barcode Reader API
25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents