The GDRegistration helps with application registration. More...
#import <GDRegistration.h>
Public Member Functions | |
| (void) | - sendLicenseHome |
| Sends a GET request to a URL. | |
| (void) | - saveRegistrationIntoUserDefaults:licenseStorageKey:name:license: |
| Saves registration into user defaults. | |
| (void) | - saveRegistrationLicense:forName: |
| Saves registration information into user defaults using default storage keys. | |
| (NSString *) | - getLicense |
| The license code. | |
| (NSString *) | - getName |
| The registrant name. | |
| (Boolean) | - isValidForName:andLicense: |
| Whether or not a registration is valid. | |
| (Boolean) | - isValid |
| Checks that the registered license is valid. | |
| (Boolean) | - hasSavedRegistration |
| Whether or not a saved registration exists in user defaults. | |
| (Boolean) | - isLicenseBlacklisted: |
| Check whether or not a license is blacklisted. | |
| (Boolean) | - isRegisteredLicenseBlacklisted |
| Whether or not the license that is saved in user defaults is blacklisted. | |
| (void) | - addLicenseToBlacklist: |
| Add a license that's considered blacklisted. | |
Protected Attributes | |
| NSUserDefaults * | defaults |
| User defaults instance. | |
| NSMutableArray * | blacklist |
| Blacklisted licenses. | |
Properties | |
| NSString * | homeURL |
| A url that the license get's "sent home" to. | |
The GDRegistration helps with application registration.
| - (void) addLicenseToBlacklist: | (NSString *) | license |
Add a license that's considered blacklisted.
| license | The license to blacklist. |
| - (NSString *) getLicense |
The license code.
The license has to have been saved with the default license storage key.
| - (NSString *) getName |
The registrant name.
The name has to have been saved with the default name storage key.
| - (Boolean) isLicenseBlacklisted: | (NSString *) | license |
Check whether or not a license is blacklisted.
| license | The license to check. |
| - (Boolean) isValid |
Checks that the registered license is valid.
A license has to already have been saved in user defaults.
Whether or not a registration is valid.
| name | The registrant name. | |
| license | The license. |
| - (void) saveRegistrationIntoUserDefaults: | (NSString *) | nameStorageKey | ||
| licenseStorageKey: | (NSString *) | licenseStorageKey | ||
| name: | (NSString *) | name | ||
| license: | (NSString *) | license | ||
Saves registration into user defaults.
| nameStorageKey | The registrant name storage key. | |
| licenseStorageKey | The license storage key. | |
| name | The registrant name. | |
| license | The license. |
Saves registration information into user defaults using default storage keys.
| license | The license key. | |
| name | The registrant name. |
| - (void) sendLicenseHome |
Sends a GET request to a URL.
You need a key in your Info.plist file called "GDLicenseHomeURL" - the license is appended onto that url.
- (NSString *) homeURL [read, write, copy] |
A url that the license get's "sent home" to.
The license is appended onto this url.