16#import <Foundation/Foundation.h>
20NS_ASSUME_NONNULL_BEGIN
38#pragma mark UDID pasteboard storage
46+ (nullable NSDictionary *)writeUDIDForFirstEmptyLocationWithError:
47 (NSError *_Nullable *_Nullable)error;
55+ (nullable NSDictionary *)writeUDIDForFirstEmptyLocationWithUdid:(nullable NSString *)udid;
63+ (nullable NSDictionary *)writeUDIDWithUdid:(nullable NSString *)udid;
73+ (nullable NSDictionary *)udidWithServiceName:(nullable NSString *)serviceName
74 storageIndex:(int)storageIndex
75 error:(NSError *_Nullable *_Nullable)error;
83+ (nullable NSDictionary *)udidForFirstInvalidDataWithError:(NSError *_Nullable *_Nullable)error;
91+ (nullable NSDictionary *)udidOldForFirstInvalidDataWithError:(NSError *_Nullable *_Nullable)error;
101+ (BOOL)deleteUDIDWithServiceName:(nullable NSString *)serviceName
102 storageIndex:(int)storageIndex
103 error:(NSError *_Nullable *_Nullable)error;
111#pragma mark Advertising reward UDID
119+ (nullable NSString *)getAdvertisingRewardUdidWithError:(NSError *_Nullable *_Nullable)error;
127+ (nullable NSString *)createAdvertisingRewardUdidWithError:(NSError *_Nullable *_Nullable)error;
136+ (BOOL)deleteAdvertisingRewardUdidIndex:(int)index error:(NSError *_Nullable *_Nullable)error;
144#pragma mark Old and new UDID
153+ (BOOL)setOldUdid:(nullable NSString *)oldUdid error:(NSError *_Nullable *_Nullable)error;
161+ (nullable NSString *)getOldUdidWithError:(NSError *_Nullable *_Nullable)error;
169+ (BOOL)deleteOldUdidWithError:(NSError *_Nullable *_Nullable)error;
179+ (BOOL)setNewUdid:(nullable NSString *)newUdid error:(NSError *_Nullable *_Nullable)error;
181#pragma mark Keychain access
190+ (BOOL)setUdidWithService:(nullable NSString *)service withUDID:(nullable NSString *)udid;
201+ (nullable NSString *)getUdidWithService:(nullable NSString *)service
202 storageIndex:(nullable NSString *)storageIndex
203 rewardNetworkUDIDType:(int)rewardNetworkUDIDType
204 error:(NSError *_Nullable *_Nullable)error;
212+ (nullable NSDictionary *)searchWithService:(nullable NSString *)service;
221+ (BOOL)deleteKeyChainService:(nullable NSString *)service
222 error:(NSError *_Nullable *_Nullable)error;
231+ (BOOL)validate:(nullable NSDictionary *)attributes error:(NSError *_Nullable *_Nullable)error;
239+ (NSString *)getServiceIndex:(nullable NSString *)service;
247+ (void)setService:(nullable NSString *)service withStorageIndex:(nullable NSString *)storageIndex;
249#pragma mark Advertising identifier
285+ (nullable NSString *)md5WithString:(nullable NSString *)
string;
287#pragma mark UDID parameters and state
297+ (BOOL)setUdidParameters:(nullable id)udidParameters isUDIDPriorityType:(int)isUDIDPriorityType;
305+ (BOOL)setUdidParameters:(nullable id)udidParameters;
The KONAMI Applilink SDK's pasteboard-backed UDID store.
Pasteboard-backed UDID store for the Applilink SDK.
Definition ApplilinkPasteBoard.h:22
Advertising-identifier, UDID-generation, and keychain-persistence helper for the Applilink SDK.
Definition ApplilinkUdid.h:27
nullable NSString * getAdvertisingUdid()
The device advertising identifier hashed with MD5, when tracking is available and enabled.
Definition ApplilinkUdid.m:654
BOOL isPasteBoardStatus()
Whether the shared pasteboard reports the non-pasteboard UDID flag.
Definition ApplilinkUdid.m:846
BOOL isAdvertisingTrackingEnabled()
Whether the user permits advertising tracking on this device.
Definition ApplilinkUdid.m:666
instancetype sharedInstance()
The lazily-created shared singleton.
Definition ApplilinkUdid.m:130
void deleteAllAdvertisingUDID()
Deletes every advertising reward UDID keychain entry.
Definition ApplilinkUdid.m:389
nullable NSString * getAdUdid()
The device advertising identifier UUID string, resolved by name at runtime.
Definition ApplilinkUdid.m:851
ApplilinkPasteBoard * pasteBoard
The shared ApplilinkPasteBoard that mirrors the keychain-stored UDIDs.
Definition ApplilinkUdid.h:29
NSString * getServiceName()
The keychain service name for advertising UDIDs, prefixed with the server environment.
Definition ApplilinkUdid.m:803
void debugLog()
Logs the pasteboard and SDK-core UDID state when the debug environment default is set.
Definition ApplilinkUdid.m:890
void deleteAllUDID()
Deletes every stored pasteboard UDID, current and old.
Definition ApplilinkUdid.m:265
nullable NSString * bundleSeedID()
The keychain bundle-seed identifier, read from a keychain access group.
Definition ApplilinkUdid.m:868
NSString * getCFUUID()
A freshly minted UUID string.
Definition ApplilinkUdid.m:645
BOOL isUdidSDKPasteBoard()
Whether the current UDID differs from the SDK pasteboard UDID.
Definition ApplilinkUdid.m:793
BOOL isAdvertisingTrackingOSVersion()
Whether the operating-system version exposes the advertising identifier framework.
Definition ApplilinkUdid.m:676
NSString * getServiceNameOld()
The keychain service name for old UDIDs, prefixed with the server environment.
Definition ApplilinkUdid.m:812
BOOL isUdidThreeKinds()
Whether the ad, current, and old UDIDs are three distinct values.
Definition ApplilinkUdid.m:776
void setUdidKeychainFromPasteBoard()
Copies the pasteboard-stored UDID for the recorded storage index into the keychain.
Definition ApplilinkUdid.m:821