sensitivity.io for iOS & macOS  1.1.4
Instance Methods | Class Methods | List of all members
LicenseLoader Class Reference

#import <LicenseLoader.h>

Inheritance diagram for LicenseLoader:

Instance Methods

(BOOL) - loadLicenseFromFileAtPath:withError:
 
(BOOL) - loadLicenseFromString:withError:
 

Class Methods

(instancetype _Nullable) + sharedInstanceWithError:
 

Detailed Description

LicenseLoader class provides the means to load your license.

Method Documentation

◆ loadLicenseFromFileAtPath:withError:()

- (BOOL) loadLicenseFromFileAtPath: (NSString *_Nonnull)  licenseFilePath
withError: (NSError *_Nullable *_Nullable)  error 

Loads license from the given file path

Remarks
Relevant errors: SENSITIVITYIO_EINVALIDLICENSE, ENOENT, EIO
Parameters
licenseFilePathThe path of the license file to load
errorThe error representing the reason for the load failure
Returns
True if license loading was successful, false in case an error occured

◆ loadLicenseFromString:withError:()

- (BOOL) loadLicenseFromString: (NSString *_Nonnull)  licenseString
withError: (NSError *_Nullable *_Nullable)  error 

Loads license from the given string

Remarks
Relevant errors: SENSITIVITYIO_EINVALIDLICENSE
Parameters
licenseStringThe license string to load
errorThe error representing the reason for the load failure
Returns
True if license loading was successful, false in case an error occured

◆ sharedInstanceWithError:()

+ (instancetype _Nullable) sharedInstanceWithError: (NSError *_Nullable *_Nullable)  error

Returns the singleton object of this class

Parameters
errorThe error representing the reason for the failure
Returns
The singleton object of this class

The documentation for this class was generated from the following file: