JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkUdid.h
Go to the documentation of this file.
1
15
16#import <Foundation/Foundation.h>
17
19
20NS_ASSUME_NONNULL_BEGIN
21
26@interface ApplilinkUdid : NSObject
27
29@property(strong, nonatomic, nullable) ApplilinkPasteBoard *pasteBoard;
30
36+ (instancetype)sharedInstance;
37
38#pragma mark UDID pasteboard storage
39
46+ (nullable NSDictionary *)writeUDIDForFirstEmptyLocationWithError:
47 (NSError *_Nullable *_Nullable)error;
48
55+ (nullable NSDictionary *)writeUDIDForFirstEmptyLocationWithUdid:(nullable NSString *)udid;
56
63+ (nullable NSDictionary *)writeUDIDWithUdid:(nullable NSString *)udid;
64
73+ (nullable NSDictionary *)udidWithServiceName:(nullable NSString *)serviceName
74 storageIndex:(int)storageIndex
75 error:(NSError *_Nullable *_Nullable)error;
76
83+ (nullable NSDictionary *)udidForFirstInvalidDataWithError:(NSError *_Nullable *_Nullable)error;
84
91+ (nullable NSDictionary *)udidOldForFirstInvalidDataWithError:(NSError *_Nullable *_Nullable)error;
92
101+ (BOOL)deleteUDIDWithServiceName:(nullable NSString *)serviceName
102 storageIndex:(int)storageIndex
103 error:(NSError *_Nullable *_Nullable)error;
104
109+ (void)deleteAllUDID;
110
111#pragma mark Advertising reward UDID
112
119+ (nullable NSString *)getAdvertisingRewardUdidWithError:(NSError *_Nullable *_Nullable)error;
120
127+ (nullable NSString *)createAdvertisingRewardUdidWithError:(NSError *_Nullable *_Nullable)error;
128
136+ (BOOL)deleteAdvertisingRewardUdidIndex:(int)index error:(NSError *_Nullable *_Nullable)error;
137
143
144#pragma mark Old and new UDID
145
153+ (BOOL)setOldUdid:(nullable NSString *)oldUdid error:(NSError *_Nullable *_Nullable)error;
154
161+ (nullable NSString *)getOldUdidWithError:(NSError *_Nullable *_Nullable)error;
162
169+ (BOOL)deleteOldUdidWithError:(NSError *_Nullable *_Nullable)error;
170
179+ (BOOL)setNewUdid:(nullable NSString *)newUdid error:(NSError *_Nullable *_Nullable)error;
180
181#pragma mark Keychain access
182
190+ (BOOL)setUdidWithService:(nullable NSString *)service withUDID:(nullable NSString *)udid;
191
201+ (nullable NSString *)getUdidWithService:(nullable NSString *)service
202 storageIndex:(nullable NSString *)storageIndex
203 rewardNetworkUDIDType:(int)rewardNetworkUDIDType
204 error:(NSError *_Nullable *_Nullable)error;
205
212+ (nullable NSDictionary *)searchWithService:(nullable NSString *)service;
213
221+ (BOOL)deleteKeyChainService:(nullable NSString *)service
222 error:(NSError *_Nullable *_Nullable)error;
223
231+ (BOOL)validate:(nullable NSDictionary *)attributes error:(NSError *_Nullable *_Nullable)error;
232
239+ (NSString *)getServiceIndex:(nullable NSString *)service;
240
247+ (void)setService:(nullable NSString *)service withStorageIndex:(nullable NSString *)storageIndex;
248
249#pragma mark Advertising identifier
250
256+ (NSString *)getCFUUID;
257
263+ (nullable NSString *)getAdvertisingUdid;
264
271
278
285+ (nullable NSString *)md5WithString:(nullable NSString *)string;
286
287#pragma mark UDID parameters and state
288
297+ (BOOL)setUdidParameters:(nullable id)udidParameters isUDIDPriorityType:(int)isUDIDPriorityType;
298
305+ (BOOL)setUdidParameters:(nullable id)udidParameters;
306
312+ (BOOL)isUdidThreeKinds;
313
319+ (BOOL)isUdidSDKPasteBoard;
320
326+ (NSString *)getServiceName;
327
333+ (NSString *)getServiceNameOld;
334
340
346+ (BOOL)isPasteBoardStatus;
347
353+ (nullable NSString *)getAdUdid;
354
360- (nullable NSString *)bundleSeedID;
361
366+ (void)debugLog;
367
368@end
369
370NS_ASSUME_NONNULL_END
371
372// code: language=Objective-C
373// kate: hl Objective-C;
374// vim: set ft=objc :
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