ALLicenseUtil Class Reference

Inherits from NSObject
Declared in ALLicenseUtil.h

Overview

Utilities that work with the Anyline license key

  isLicenseValid

Indicates whether the license had been checked and is valid.

@property (nonatomic, readonly) BOOL isLicenseValid

Declared In

ALLicenseUtil.h

  showWatermark

Indicates whether the license had allowed the watermark to be shown/not shown.

@property (nonatomic, readonly) BOOL showWatermark

Declared In

ALLicenseUtil.h

+ sharedInstance

Singleton instance for ALLicenseUtil

+ (instancetype)sharedInstance

Return Value

the shared instance of ALLicenseUtil

Declared In

ALLicenseUtil.h

– scopeEnabledFor:

Given a scope keyword, determine if the initialized license key is valid for it

- (BOOL)scopeEnabledFor:(NSString *)valueName

Parameters

valueName

string indicating the scope being queried

Declared In

ALLicenseUtil.h

– licenseExpirationDate

Returns a human-readable string indicating the expiry date for the Anyline license key initialized. NOTE: this method can only return a date string when [AnylineSDK setupWithLicenseKey:error:] is called beforehand and returns YES.

- (NSString *)licenseExpirationDate

Return Value

the date string of the license key’s expiry, or null if key is not yet initialized

Declared In

ALLicenseUtil.h