|
JubeatPlus 3.9.11
|
Advertising-identifier, UDID-generation, and keychain-persistence helper for the Applilink SDK. More...
#include <ApplilinkUdid.h>


Instance Methods | |
| (nullable NSString *) | - bundleSeedID |
| The keychain bundle-seed identifier, read from a keychain access group. | |
Class Methods | |
| (instancetype) | + sharedInstance |
| The lazily-created shared singleton. | |
| (nullable NSDictionary *) | + writeUDIDForFirstEmptyLocationWithError: |
| Writes a freshly generated UDID into the first empty pasteboard slot. | |
| (nullable NSDictionary *) | + writeUDIDForFirstEmptyLocationWithUdid: |
| Writes the given UDID into the first empty pasteboard slot. | |
| (nullable NSDictionary *) | + writeUDIDWithUdid: |
| Replaces the pasteboard's slot 0 UDID with the given value. | |
| (nullable NSDictionary *) | + udidWithServiceName:storageIndex:error: |
| The pasteboard UDID for a service name and storage index. | |
| (nullable NSDictionary *) | + udidForFirstInvalidDataWithError: |
| The first stored (potentially invalid) pasteboard UDID. | |
| (nullable NSDictionary *) | + udidOldForFirstInvalidDataWithError: |
| The first stored (potentially invalid) old pasteboard UDID. | |
| (BOOL) | + deleteUDIDWithServiceName:storageIndex:error: |
| Deletes the pasteboard UDID for a service name and storage index. | |
| (void) | + deleteAllUDID |
| Deletes every stored pasteboard UDID, current and old. | |
| (nullable NSString *) | + getAdvertisingRewardUdidWithError: |
| The stored advertising reward UDID, refreshing it from the keychain. | |
| (nullable NSString *) | + createAdvertisingRewardUdidWithError: |
| Generates, hashes, and persists a fresh advertising reward UDID. | |
| (BOOL) | + deleteAdvertisingRewardUdidIndex:error: |
| Deletes the advertising reward UDID at a keychain index. | |
| (void) | + deleteAllAdvertisingUDID |
| Deletes every advertising reward UDID keychain entry. | |
| (BOOL) | + setOldUdid:error: |
| Stores the old UDID in the keychain under the old service name. | |
| (nullable NSString *) | + getOldUdidWithError: |
| Reads the old UDID from the keychain. | |
| (BOOL) | + deleteOldUdidWithError: |
| Deletes the old UDID keychain entry. | |
| (BOOL) | + setNewUdid:error: |
| Stores the new UDID in the keychain and the SDK core, keyed by the stored ad storage index. | |
| (BOOL) | + setUdidWithService:withUDID: |
| Adds or updates a keychain generic-password item storing a UDID under a service key. | |
| (nullable NSString *) | + getUdidWithService:storageIndex:rewardNetworkUDIDType:error: |
| Reads and validates a keychain UDID, updating its modification date on read. | |
| (nullable NSDictionary *) | + searchWithService: |
| Looks up a single keychain generic-password item by service key. | |
| (BOOL) | + deleteKeyChainService:error: |
| Deletes a keychain generic-password item by service key. | |
| (BOOL) | + validate:error: |
| Validates that a keychain attribute dictionary holds a well-formed, live UDID record. | |
| (NSString *) | + getServiceIndex: |
| The keychain account (storage index) recorded for a service key. | |
| (void) | + setService:withStorageIndex: |
| Records the account (storage index) for a service key in the keychain. | |
| (NSString *) | + getCFUUID |
| A freshly minted UUID string. | |
| (nullable NSString *) | + getAdvertisingUdid |
| The device advertising identifier hashed with MD5, when tracking is available and enabled. | |
| (BOOL) | + isAdvertisingTrackingEnabled |
| Whether the user permits advertising tracking on this device. | |
| (BOOL) | + isAdvertisingTrackingOSVersion |
| Whether the operating-system version exposes the advertising identifier framework. | |
| (nullable NSString *) | + md5WithString: |
| The lowercase hex MD5 digest of a string's UTF-8 bytes. | |
| (BOOL) | + setUdidParameters:isUDIDPriorityType: |
| Attaches the resolved UDIDs to a request parameter dictionary, honouring the priority type. | |
| (BOOL) | + setUdidParameters: |
| Attaches the primary UDID to a request parameter dictionary. | |
| (BOOL) | + isUdidThreeKinds |
| Whether the ad, current, and old UDIDs are three distinct values. | |
| (BOOL) | + isUdidSDKPasteBoard |
| Whether the current UDID differs from the SDK pasteboard UDID. | |
| (NSString *) | + getServiceName |
| The keychain service name for advertising UDIDs, prefixed with the server environment. | |
| (NSString *) | + getServiceNameOld |
| The keychain service name for old UDIDs, prefixed with the server environment. | |
| (void) | + setUdidKeychainFromPasteBoard |
| Copies the pasteboard-stored UDID for the recorded storage index into the keychain. | |
| (BOOL) | + isPasteBoardStatus |
| Whether the shared pasteboard reports the non-pasteboard UDID flag. | |
| (nullable NSString *) | + getAdUdid |
| The device advertising identifier UUID string, resolved by name at runtime. | |
| (void) | + debugLog |
| Logs the pasteboard and SDK-core UDID state when the debug environment default is set. | |
Properties | |
| ApplilinkPasteBoard * | pasteBoard |
The shared ApplilinkPasteBoard that mirrors the keychain-stored UDIDs. | |
Advertising-identifier, UDID-generation, and keychain-persistence helper for the Applilink SDK.
| - (NSString *) bundleSeedID |
The keychain bundle-seed identifier, read from a keychain access group.
| + (nullable NSString *) createAdvertisingRewardUdidWithError: | (NSError *_Nullable *_Nullable) | error |
Generates, hashes, and persists a fresh advertising reward UDID.
| error | Set to a localised error on failure. |
| + (void) debugLog |
Logs the pasteboard and SDK-core UDID state when the debug environment default is set.
| + (BOOL) deleteAdvertisingRewardUdidIndex: | (int) | index | |
| error: | (NSError *_Nullable *_Nullable) | error |
Deletes the advertising reward UDID at a keychain index.
| index | The reward UDID index, which must be below the storage-slot count. |
| error | Set to a localised error on failure. |
YES when the entry was deleted or absent. | + (void) deleteAllAdvertisingUDID |
Deletes every advertising reward UDID keychain entry.
| + (void) deleteAllUDID |
Deletes every stored pasteboard UDID, current and old.
| + (BOOL) deleteKeyChainService: | (nullable NSString *) | service | |
| error: | (NSError *_Nullable *_Nullable) | error |
Deletes a keychain generic-password item by service key.
| service | The keychain service key. |
| error | Set to a localised error on failure. |
YES on success or when the item is absent. | + (BOOL) deleteOldUdidWithError: | (NSError *_Nullable *_Nullable) | error |
Deletes the old UDID keychain entry.
| error | Set to a localised error on failure. |
YES when the entry was deleted or absent. | + (BOOL) deleteUDIDWithServiceName: | (nullable NSString *) | serviceName | |
| storageIndex: | (int) | storageIndex | |
| error: | (NSError *_Nullable *_Nullable) | error |
Deletes the pasteboard UDID for a service name and storage index.
| serviceName | The pasteboard service name. |
| storageIndex | The storage slot index. |
| error | Set to a localised error on failure. |
YES when the slot was deleted or absent. | + (NSString *) getAdUdid |
The device advertising identifier UUID string, resolved by name at runtime.
| + (nullable NSString *) getAdvertisingRewardUdidWithError: | (NSError *_Nullable *_Nullable) | error |
The stored advertising reward UDID, refreshing it from the keychain.
| error | Set to the keychain error when the read fails. |
| + (NSString *) getAdvertisingUdid |
The device advertising identifier hashed with MD5, when tracking is available and enabled.
| + (NSString *) getCFUUID |
A freshly minted UUID string.
| + (nullable NSString *) getOldUdidWithError: | (NSError *_Nullable *_Nullable) | error |
Reads the old UDID from the keychain.
| error | Set to a localised error on failure. |
| + (NSString *) getServiceIndex: | (nullable NSString *) | service |
The keychain account (storage index) recorded for a service key.
| service | The keychain service key. |
"0" when absent. | + (NSString *) getServiceName |
The keychain service name for advertising UDIDs, prefixed with the server environment.
| + (NSString *) getServiceNameOld |
The keychain service name for old UDIDs, prefixed with the server environment.
| + (nullable NSString *) getUdidWithService: | (nullable NSString *) | service | |
| storageIndex: | (nullable NSString *) | storageIndex | |
| rewardNetworkUDIDType: | (int) | rewardNetworkUDIDType | |
| error: | (NSError *_Nullable *_Nullable) | error |
Reads and validates a keychain UDID, updating its modification date on read.
| service | The keychain service prefix. |
| storageIndex | The storage index appended to the service key. |
| rewardNetworkUDIDType | The reward-network UDID type selector. |
| error | Set to a localised error when validation fails. |
| + (BOOL) isAdvertisingTrackingEnabled |
Whether the user permits advertising tracking on this device.
YES when advertising tracking is enabled. | + (BOOL) isAdvertisingTrackingOSVersion |
Whether the operating-system version exposes the advertising identifier framework.
YES on iOS 6.1 or later. | + (BOOL) isPasteBoardStatus |
Whether the shared pasteboard reports the non-pasteboard UDID flag.
| + (BOOL) isUdidSDKPasteBoard |
Whether the current UDID differs from the SDK pasteboard UDID.
YES when the two UDIDs differ. | + (BOOL) isUdidThreeKinds |
Whether the ad, current, and old UDIDs are three distinct values.
YES when all three UDIDs differ. | + (nullable NSString *) md5WithString: | (nullable NSString *) | string |
The lowercase hex MD5 digest of a string's UTF-8 bytes.
| string | The string to hash. |
string is nil. | + (nullable NSDictionary *) searchWithService: | (nullable NSString *) | service |
Looks up a single keychain generic-password item by service key.
| service | The keychain service key. |
| + (BOOL) setNewUdid: | (nullable NSString *) | newUdid | |
| error: | (NSError *_Nullable *_Nullable) | error |
Stores the new UDID in the keychain and the SDK core, keyed by the stored ad storage index.
| newUdid | The new UDID to store. |
| error | Set to a localised error on failure. |
YES on success. | + (BOOL) setOldUdid: | (nullable NSString *) | oldUdid | |
| error: | (NSError *_Nullable *_Nullable) | error |
Stores the old UDID in the keychain under the old service name.
| oldUdid | The old UDID to store. |
| error | Set to a localised error on failure. |
YES on success. | + (void) setService: | (nullable NSString *) | service | |
| withStorageIndex: | (nullable NSString *) | storageIndex |
Records the account (storage index) for a service key in the keychain.
| service | The keychain service key. |
| storageIndex | The account string to store. |
| + (void) setUdidKeychainFromPasteBoard |
Copies the pasteboard-stored UDID for the recorded storage index into the keychain.
| + (BOOL) setUdidParameters: | (nullable id) | udidParameters |
Attaches the primary UDID to a request parameter dictionary.
| udidParameters | The mutable parameter dictionary to populate. |
YES when a UDID was attached. | + (BOOL) setUdidParameters: | (nullable id) | udidParameters | |
| isUDIDPriorityType: | (int) | isUDIDPriorityType |
Attaches the resolved UDIDs to a request parameter dictionary, honouring the priority type.
| udidParameters | The mutable parameter dictionary to populate. |
| isUDIDPriorityType | The priority selecting which UDID becomes the primary value. |
YES when at least one UDID was attached. | + (BOOL) setUdidWithService: | (nullable NSString *) | service | |
| withUDID: | (nullable NSString *) | udid |
Adds or updates a keychain generic-password item storing a UDID under a service key.
| service | The keychain service key. |
| udid | The UDID value to store. |
YES when udid is non-nil. | + (instancetype) sharedInstance |
The lazily-created shared singleton.
ApplilinkUdid instance. | + (nullable NSDictionary *) udidForFirstInvalidDataWithError: | (NSError *_Nullable *_Nullable) | error |
The first stored (potentially invalid) pasteboard UDID.
| error | Set to a localised error when no data is present. |
| + (nullable NSDictionary *) udidOldForFirstInvalidDataWithError: | (NSError *_Nullable *_Nullable) | error |
The first stored (potentially invalid) old pasteboard UDID.
| error | Set to a localised error when no data is present. |
| + (nullable NSDictionary *) udidWithServiceName: | (nullable NSString *) | serviceName | |
| storageIndex: | (int) | storageIndex | |
| error: | (NSError *_Nullable *_Nullable) | error |
The pasteboard UDID for a service name and storage index.
| serviceName | The pasteboard service name. |
| storageIndex | The storage slot index. |
| error | Set to a localised error when the slot is empty. |
| + (BOOL) validate: | (nullable NSDictionary *) | attributes | |
| error: | (NSError *_Nullable *_Nullable) | error |
Validates that a keychain attribute dictionary holds a well-formed, live UDID record.
| attributes | The keychain attribute dictionary. |
| error | Set to a localised error describing the first missing or invalid field. |
YES when the record is valid. | + (nullable NSDictionary *) writeUDIDForFirstEmptyLocationWithError: | (NSError *_Nullable *_Nullable) | error |
Writes a freshly generated UDID into the first empty pasteboard slot.
| error | Set to a localised error when the write fails. |
| + (nullable NSDictionary *) writeUDIDForFirstEmptyLocationWithUdid: | (nullable NSString *) | udid |
Writes the given UDID into the first empty pasteboard slot.
| udid | The UDID to store. |
| + (nullable NSDictionary *) writeUDIDWithUdid: | (nullable NSString *) | udid |
Replaces the pasteboard's slot 0 UDID with the given value.
| udid | The UDID to store. |