Kofax Mobile SDK API Reference
kfxKUTLicensing.h
Go to the documentation of this file.
1 //
2 // API Reference
3 // kfxKUTLicensing.h
4 // Framework: kfxLibUtilities
5 //
6 // Copyright (c) 2012 - 2017 Kofax. Use of this code is with permission pursuant to Kofax license terms.
7 //
8 
9 #import <Foundation/Foundation.h>
12 
13 #define KUT_MINIMUM_LICENSE_LENGTH 20
14 
15 typedef enum {
20  LIC_LOGISTICS = 3, //not used but to keep the same index as in Android
24 
26 
27 typedef enum {
31 
33 
39 
40 @optional
41 // ===================================================
43 
54 - (void)acquireVolumeLicenseDone:(int) licAcquired error: (NSError*) error;
55 
56 @end
57 
59 
60 @required
61 // ===================================================
63 
69 - (void)customAcquireVolumeLicenseWithData:(kfxKUTCustomAcquireVolumeLicenseRequestData*)data;
70 
71 @end
72 
73 
75 
77 
82 @interface kfxKUTLicensing : NSObject
83 
85 
86 @property (nonatomic, weak) id <kfxKUTAcquireVolumeLicenseDelegate> delegate;
87 
89 
97 @property (nonatomic, weak) id <kfxKUTCustomAcquireVolumeLicenseDelegate> customAcquireVolumeLicenseDelegate;
98 
99 // ===================================================
101 
106 @property (nonatomic, weak) id <kfxKUTCertificateValidatorDelegate> certificateValidatorDelegate;
108 
109 // ===================================================
111 
114 @property (readonly) int daysRemaining;
115 
116 // ===================================================
118 
153 - (int) setMobileSDKLicense: (NSString*) license;
154 
155 // ===================================================
157 
163 + (int) isSdkLicensed : (kfxKUTLicenseFeature)feature;
164 
166 // ===================================================
168 
187 - (void) setMobileSDKLicenseServer: (NSString*) licenseServerUrl type:(kfxKUTLicenseServerType) serverType;
188 
189 // ===================================================
191 
209 - (void) acquireVolumeLicenses: (kfxKUTLicenseFeature) licenseType withCount: (int) count;
210 
211 // ===================================================
213 
232 - (int) getRemainingLicenseCount: (kfxKUTLicenseFeature) licType;
234 @end
Definition: Common/API/kfxKUTCustomAcquireVolumeLicenseRequestData.h:13
Definition: kfxKUTLicensing.h:17
This protocol must be implemented by classes whose objects are used as kfxKUTLicensing delegates...
Definition: kfxKUTLicensing.h:38
int daysRemaining
Indicates the number of days before the license expires.
Definition: kfxKUTLicensing.h:114
Definition: kfxKUTLicensing.h:21
Definition: kfxKUTLicensing.h:58
Definition: kfxKUTLicensing.h:28
kfxKUTLicenseFeature
Definition: kfxKUTLicensing.h:15
Definition: kfxKUTLicensing.h:18
kfxKUTLicenseServerType
Definition: kfxKUTLicensing.h:27
id< kfxKUTCertificateValidatorDelegate > certificateValidatorDelegate
The certificate validator delegate.
Definition: kfxKUTLicensing.h:106
Definition: kfxKUTLicensing.h:16
id< kfxKUTAcquireVolumeLicenseDelegate > delegate
Definition: kfxKUTLicensing.h:86
Definition: kfxKUTLicensing.h:29
id< kfxKUTCustomAcquireVolumeLicenseDelegate > customAcquireVolumeLicenseDelegate
The custom acquire licenses delegate.
Definition: kfxKUTLicensing.h:97
Definition: kfxKUTLicensing.h:20
License for unlocking library features.
Definition: kfxKUTLicensing.h:82
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.