Socket ScanAPI Reference
19.6.4
Example
/**
* close ScanAPI by first releasing its ownership and
* by sending an abort. This allows ScanAPI to shutdown
* gracefully by asking to close any Scanner Object if
* they were opened. When ScanAPI is done a kSktScanTerminate event
* is received in the ScanObject consumer timer thread.
*/
private void
closeScanApi(){
_scanApiHelper.close();
_scanApiOwnership.releaseOwnership();
}
19.6.5
Function information
C/C++
Header
Import library
Minimum operating systems
Java
Import
Jar File
Minimum operating system
C#
Reference
Minimum operating system
Objective C
Import
Framework
Minimum operating system
19.7 Notification onScanApiOwnershipChange
The ScanAPIOwnership class requires a notification interface implementation as
part of its constructor input variable.
This interface has only one function called each time there is a ScanAPI ownership
change. A Boolean called release indicates what to do with the current ScanAPI
ownership.
If the Boolean release is set to true, then the application has to release the ScanAPI
ownership and close ScanAPI. If this Boolean is false then the application can take
the ScanAPI ownership by calling the claimOwnership method and then can open
ScanAPI.
© 2013 Socket Mobile, Inc.
Not available
Not available
Not available
com.SocketMobile.ScanAPI.SktScanApiOwnership
ScanAPIFactory.jar
RIM 5.0.0, Android 2.1
Not available
Not available
Not available
Not available
Not available
147/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?