Barcode Xpress Mobile for iOS
|
Defines a class that holds information about an Accusoft license to use the Accusoft Barcode Xpress Software Development Kit. More...
#import <BXLicense.h>
Public Member Functions | |
(id) | - init |
Initialize a BXLicense instance with empty values for the license information. | |
(id) | - initWithData:mainBundle:key1:key2:key3:key4: |
Creates a BXLicense object using license information provided by Accusoft and a reference to the current NSBundle mainBundle object. | |
Properties | |
NSString * | m_OEMLicenseKey |
OEM license key. | |
long | m_Key1 |
Solution Key 1. | |
long | m_Key2 |
Solution Key 2. | |
long | m_Key3 |
Solution Key 3. | |
long | m_Key4 |
Solution Key 4. | |
NSBundle * | m_MainBundle |
Main Bundle. |
Defines a class that holds information about an Accusoft license to use the Accusoft Barcode Xpress Software Development Kit.
- (id) init |
Initialize a BXLicense instance with empty values for the license information.
OEM license key.
NSString values will be set to nil, and long values will be set to zero.
return The object ID
Solution Key 1 Solution Key 2 Solution Key 3 Solution Key 4 Main Bundle Initialize a BXLicense instance with empty values for the license information. NSString values will be set to nil, and long values will be set to zero.
return The object ID
- (id) initWithData: | (NSString*) | inOEMLicenseKey | |
mainBundle: | (NSBundle*) | inMainBundle | |
key1: | (long) | inKey1 | |
key2: | (long) | inKey2 | |
key3: | (long) | inKey3 | |
key4: | (long) | inKey4 | |
Creates a BXLicense object using license information provided by Accusoft and a reference to the current NSBundle mainBundle object.
Example OEM license key:
A/2R0LQRQeRHHaen+bqwcggdbB7kDTDCCzU/P3GtiXQlnr0byBOCQW+5FPoBG/O4 2hVmCcxrZr4zBuUmFgsw64jJFhKsRtUqjdvWzqyJY2guYfZNhswtgziXZZm6n/rb gv9pKn9pLFWmXk579SjZw7ZFDD3wWJM1XzyeW5VbAuw=
Example Instantiation:
BXLicense* license = [[BXLicense alloc] initWithData:@"A/2R0LQRQeRHHaen+bqwcggdbB7kDTDCCzU/P3GtiXQlnr0byBOCQW+5FPoBG/O4\n" "2hVmCcxrZr4zBuUmFgsw64jJFhKsRtUqjdvWzqyJY2guYfZNhswtgziXZZm6n/rb\n" "gv9pKn9pLFWmXk579SjZw7ZFDD3wWJM1XzyeW5VbAuw=\n" mainBundle:[NSBundle mainBundle] key1:1 key2:2 key3:3 key4:4 ];
Note that the OEM license key spans three lines. The newline "\n" at the end of each line, inserted into the string when it is passed as a parameter, is required.
inOEMLicenseKey | An NSString containing the OEM License Key portion of the Accusoft license. |
inMainBundle | The application's mainBundle. See [NSBundle mainBundle]. |
inKey1 | The numeric value of Key 1 from the Accusoft license. |
inKey2 | The numeric value of Key 2 from the Accusoft license. |
inKey3 | The numeric value of Key 3 from the Accusoft license. |
inKey4 | The numeric value of Key 4 from the Accusoft license. |