Barcode Xpress Mobile for Android
 All Classes Functions Variables Pages
BXLicense Class Reference

Provides a way of passing license information to the native recognition library. More...

Public Member Functions

 BXLicense (String OEMKey, Application application, long solutionKey1, long solutionKey2, long solutionKey3, long solutionKey4)
 Creates a BXLicense object using license information provided by Accusoft and a reference to the current android.app.Application object. More...
 
Application getApplication ()
 Get the Application object. More...
 
String getOEMKey ()
 Get the OEM Key. More...
 
long[] getSolutionKey ()
 Get the Solution Key. More...
 

Detailed Description

Provides a way of passing license information to the native recognition library.

Constructor & Destructor Documentation

BXLicense ( String  OEMKey,
Application  application,
long  solutionKey1,
long  solutionKey2,
long  solutionKey3,
long  solutionKey4 
)
inline

Creates a BXLicense object using license information provided by Accusoft and a reference to the current android.app.Application object.

Example OEM license key:

A/2R0LQRQeRHHaen+bqwcggdbB7kDTDCCzU/P3GtiXQlnr0byBOCQW+5FPoBG/O4
2hVmCcxrZr4zBuUmFgsw64jJFhKsRtUqjdvWzqyJY2guYfZNhswtgziXZZm6n/rb
gv9pKn9pLFWmXk579SjZw7ZFDD3wWJM1XzyeW5VbAuw=

Example Instantiation:

new BXLicense("A/2R0LQRQeRHHaen+bqwcggdbB7kDTDCCzU/P3GtiXQlnr0byBOCQW+5FPoBG/O4\n" +
"2hVmCcxrZr4zBuUmFgsw64jJFhKsRtUqjdvWzqyJY2guYfZNhswtgziXZZm6n/rb\n" +
"gv9pKn9pLFWmXk579SjZw7ZFDD3wWJM1XzyeW5VbAuw=\n",
getApplication(), 0, 0, 0, 0);

Note that the OEM license key spans three lines. The newline "\n" at the end of each line is required.

Parameters
OEMKeyA string containing an OEM license key provided by Accusoft.
applicationA reference to the applications android.app.Application object. This can be obtained via Activity.getApplication() or Service.getApplication().
solutionKey1Solution Key 1, provided by Accusoft as part of the license.
solutionKey2Solution Key 2, provided by Accusoft as part of the license.
solutionKey3Solution Key 3, provided by Accusoft as part of the license.
solutionKey4Solution Key 4, provided by Accusoft as part of the license.

Member Function Documentation

Application getApplication ( )
inline

Get the Application object.

Returns
A reference to the Android Application object.
String getOEMKey ( )
inline

Get the OEM Key.

Returns
A String that holds the OEM Key.
long [] getSolutionKey ( )
inline

Get the Solution Key.

Returns
An array of four integers that comprise the Solution Key.