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

#import <LicenseRetriever.h>

Inheritance diagram for LicenseRetriever:
HttpRetriever

Instance Methods

(BOOL) - retrieveToFileAndNotifyLoaderWithError:
 
(NSString *_Nullable) - retrieveToStringAndNotifyLoaderWithError:
 
- Instance Methods inherited from HttpRetriever
(NSString *_Nullable) - destinationFileWithError:
 
(BOOL) - setDestinationFile:withError:
 
(NSString *_Nullable) - urlStringWithError:
 
(BOOL) - retrieveToFileWithError:
 
(NSString *_Nullable) - retrieveToStringWithError:
 

Class Methods

(instancetype _Nullable) + sharedInstanceWithError:
 
- Class Methods inherited from HttpRetriever
(BOOL) + setHostName:withError:
 
(NSString *_Nullable) + hostNameWithError:
 
(BOOL) + setApiVersion:withError:
 
(NSString *_Nullable) + apiVersionWithError:
 
(BOOL) + setAccountId:withError:
 
(NSString *_Nullable) + accountIdWithError:
 
(BOOL) + setProjectId:withError:
 
(NSString *_Nullable) + projectIdWithError:
 
(BOOL) + setAuthenticationKey:withError:
 
(NSString *_Nullable) + authenticationKeyWithError:
 
(BOOL) + setApplicationId:withError:
 
(NSString *_Nullable) + applicationIdWithError:
 

Detailed Description

LicenseRetriever class is the specialized retriever which provides the means to download your license.

Method Documentation

◆ retrieveToFileAndNotifyLoaderWithError:()

- (BOOL) retrieveToFileAndNotifyLoaderWithError: (NSError *_Nullable *_Nullable)  error

Retrieves license to file and notifies license loader to load it.

Remarks
Relevant errors: SENSITIVITYIO_EINVALIDLICENSE, ENETUNREACH, EPROTO, ENOENT, EIO
Parameters
errorThe error representing the reason for the failure
Returns
True on success, false in case an error occured

◆ retrieveToStringAndNotifyLoaderWithError:()

- (NSString * _Nullable) retrieveToStringAndNotifyLoaderWithError: (NSError *_Nullable *_Nullable)  error

Retrieves license, notifies license loader to load it and returns the license string.

Remarks
Relevant errors: SENSITIVITYIO_EINVALIDLICENSE, ENETUNREACH, EPROTO
Parameters
errorThe error representing the reason for the failure
Returns
The license string on success, nil 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: