The Anyline License

When you initialize Anyline SDK, you pass in the license key. If the license key is invalid, initialization will fail and the reason will be loaded into the error object.

  • Swift

  • Objective-C

class func setup(withLicenseKey licenseKey: String) throws
+ (BOOL)setupWithLicenseKey:(NSString *)licenseKey error:(NSError **)error;

Checking the license expiry date

One reason the Anyline SDK initialization may fail is because the license key has expired. To learn the expiry date, use the method [AnylineSDK licenseExpirationDateForLicense].

  • Swift

  • Objective-C

let expiryDate = AnylineSDK.licenseExpirationDate()
NSString *expiryDate = [AnylineSDK licenseExpirationDateForLicense];