DSLicenseManager
The DSLicenseManager
class provides a set of APIs to manage SDK licensing.
Definition
Assembly: DynamsoftLicense.xcframework
- Objective-C
- Swift
@interface DSLicenseManager:NSObject
class LicenseManager : NSObject
Methods
Method | Description |
---|---|
initLicense |
Initializes the license for the application using a license key. |
setDeviceFriendlyName |
Assigns a distinctive name to the device, correlating it with its UUID. |
getDeviceUUID |
Get the unique identifier of the device. |
initLicense
Initializes the license for the application using a license key.
- Objective-C
- Swift
+ (void)initLicense:(NSString* )license verificationDelegate:(id<DSLicenseVerificationListener> _Nullable)delegate;
class func initLicense(_ license: String, verificationDelegate delegate: DSLicenseVerificationListener?)
Parameters
license
: The license key to be used for initialization.
delegate
: An delegate object of DSLicenseVerificationListener
to monitor the license activation status.
setDeviceFriendlyName
Assigns a distinctive name to the device, correlating it with its UUID.
- Objective-C
- Swift
+ (void)setDeviceFriendlyName:(NSString* )name;
class func setDeviceFriendlyName(_ name: String)
Parameters
name
: A string representing the device which is easier to recognize than its UUID.
getDeviceUUID
Get the unique identifier of the device.
- Objective-C
- Swift
+ (NSString *)getDeviceUUID;
class func getDeviceUUID() -> String
Return Value
The unique identifier of the device.