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

Defines a class that holds information about an Accusoft license to use the Accusoft Barcode Xpress Software Development Kit. More...

#import <BXLicense.h>

Inheritance diagram for BXLicense:

Instance Methods

(id) - init
 Initializes a BXLicense instance with empty values for the license information. More...
 
(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. More...
 

Properties

NSString * m_OEMLicenseKey
 Gets and sets the OEM license key.
 
long m_Key1
 Gets and sets Solution key 1.
 
long m_Key2
 Gets and sets Solution key 2.
 
long m_Key3
 Gets and sets Solution key 3.
 
long m_Key4
 Gets and sets Solution key 4.
 
NSBundle * m_MainBundle
 Gets and sets the Main Bundle identifier of the application.
 

Detailed Description

Defines a class that holds information about an Accusoft license to use the Accusoft Barcode Xpress Software Development Kit.

Method Documentation

- (id) init

Initializes 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.

Returns
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.

Parameters
inOEMLicenseKeyAn NSString containing the OEM License Key portion of the Accusoft license.
inMainBundleThe application's mainBundle. See [NSBundle mainBundle].
inKey1The numeric value of Key 1 from the Accusoft license.
inKey2The numeric value of Key 2 from the Accusoft license.
inKey3The numeric value of Key 3 from the Accusoft license.
inKey4The numeric value of Key 4 from the Accusoft license.
Returns
The object ID