Download Print this page

Socket ScanAPI Reference Manual page 91

Advertisement

Socket ScanAPI Reference
1
0
9
8
7
6
5
4
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Y X
Bit 0 is set to 1 when the device supports Rumble Mode.
Bit 1 is set to 1 when the device supports the Change ID feature.
These are the constants used for capability definition:
kSktScanCapabilityLocalFunctionRumble and
kSktScanCapabilityLocalFunctionChangeID.
Example:
switch
(scanObj.Property.ID)
{
case
ISktScanProperty.propId.kSktScanPropIdFriendlyNameDevice:
/................../
break;
case
ISktScanProperty.propId.kSktScanPropIdCapabilitiesDevice:
if
(SktScanErrors.SKTSUCCESS(result))
{
selectedScanner.OriginalProperties.Configuration.DoesRumble =
((scanObj.Property.Ulong&
ISktScanProperty.values.capabilityLocalFunctions.kSktScanCapabilityLocalFunctionRumble)==
ISktScanProperty.values.capabilityLocalFunctions.kSktScanCapabilityLocalFunctionRumble);
}
else
{
// unable to get the capabilities even after multiple
// retries by ScanAPI Helper
StopRetrievingPropertiesAndDisplayError("Failed to retrieve the Capabilities: "
result);
}
break;
case
ISktScanProperty.propId.kSktScanPropIdPostambleDevice:
/................../
break;
}
C/C++:
The constants definitions for the capabilities can be found in SktScanPropIds.h file.
Java:
The constants definition for the capabilities can be found in
com.SocketMobile.ScanAPI.ISktScanProperty.values.capabilityGroup
com.SocketMobile.ScanAPI.ISktScanProperty.values.capabilityGeneral
com.SocketMobile.ScanAPI.ISktScanProperty.values.capabilityLocalFunctions
C#:
The constants definition for the capabilities can be found in
ScanAPI.ISktScanProperty.values.capabilityGroup
ScanAPI.ISktScanProperty.values.capabilityGeneral
ScanAPI.ISktScanProperty.values.capabilityLocalFunctions
© 2013 Socket Mobile, Inc.
3
2
1
0
9
8
7
6
5
4
3
2
1
0
+
91/152

Advertisement

loading
Need help?

Need help?

Do you have a question about the ScanAPI and is the answer not in the manual?