JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkCore.h
Go to the documentation of this file.
1
24
25#import <UIKit/UIKit.h>
26
28#import "ApplilinkStore.h"
29
30NS_ASSUME_NONNULL_BEGIN
31
39@protocol ApplilinkCoreAdDelegate <NSObject>
40@optional
47- (void)appListDidStart:(nullable ApplilinkParameters *)appParam;
54- (void)appListDidAppear:(nullable ApplilinkParameters *)appParam;
61- (void)appListDidDisappear:(nullable ApplilinkParameters *)appParam;
66- (void)appListFailOpenWithError:(nullable NSError *)error;
72- (void)appListFailOpenWithError:(nullable NSError *)error
73 withApplilinkParameters:(nullable ApplilinkParameters *)appParam;
78- (void)appListFailLoadWithError:(nullable NSError *)error;
84- (void)appListFailLoadWithError:(nullable NSError *)error
85 withApplilinkParameters:(nullable ApplilinkParameters *)appParam;
90- (void)appListFailWithError:(nullable NSError *)error;
96- (void)appListFailWithError:(nullable NSError *)error
97 withApplilinkParameters:(nullable ApplilinkParameters *)appParam;
102- (void)appListFailLinkWithError:(nullable NSError *)error;
108- (void)appListFailLinkWithError:(nullable NSError *)error
109 withApplilinkParameters:(nullable ApplilinkParameters *)appParam;
116@end
117
121@interface ApplilinkCore : NSObject
122
123#pragma mark - Initialisation
124
139+ (void)initializeWithAppliId:(nullable NSString *)appliId
140 env:(nullable NSString *)env
141 resume:(BOOL)resume
142 callback:(nullable void (^)(NSError *_Nullable error))callback;
143
149+ (void)resume;
150
156+ (void)appAuthSessionRegenerateWithBlock:(nullable void (^)(NSError *_Nullable error))block;
157
162+ (void)clearInitialize;
163
164#pragma mark - Appearance configuration
165
171+ (void)setNavigationBarCommonAppearance:(BOOL)navigationBarCommonAppearance;
172
179
185+ (void)setPriorityDeviceLanguages:(BOOL)priorityDeviceLanguages;
186
193
199+ (void)setIndicatorColor:(nullable UIColor *)indicatorColor;
200
206+ (UIColor *)getIndicatorColor;
207
208#pragma mark - Build and store flags
209
215+ (void)unusedInStore;
216
222+ (BOOL)isUsedInStore;
223
228+ (void)buildUnderXcode6;
229
235+ (BOOL)isBuildXcode6;
236
237#pragma mark - Window and status
238
244+ (nullable UIWindow *)mainWindow;
245
251+ (BOOL)isInitializingFlg;
252
259
265+ (nullable NSString *)appliId;
266
267#pragma mark - UDID accessors
268
274+ (nullable NSString *)currentUdid;
275
281+ (nullable NSString *)udid_cache;
282
288+ (nullable NSString *)ad_udid_cache;
289
295+ (nullable NSString *)old_udid_cache;
296
302+ (nullable NSString *)udid;
303
310+ (nullable NSString *)pasteBoard_udid;
311
317+ (nullable NSString *)ad_udid;
318
324+ (nullable NSString *)old_udid;
325
331+ (BOOL)checkUdid;
332
333#pragma mark - UDID maintenance
334
339+ (void)clearUDID;
340
346+ (void)setAdUdid:(nullable NSString *)adUdid;
347
353
358+ (void)clearAdUDID;
359
364+ (void)updatePasteBoard;
365
366#pragma mark - Store
367
376+ (BOOL)showAppStoreId:(nullable NSString *)appStoreId
377 appParam:(nullable ApplilinkParameters *)appParam
378 delegate:(nullable id<SdkViewDelegate>)delegate;
379
384+ (void)closeAppStore;
385
386#pragma mark - Metadata
387
393+ (nullable NSString *)signatureKey;
394
400+ (nullable NSString *)versionDev;
401
402#pragma mark - Delegate fan-out
403
410+ (void)toDelegateDidStart:(nullable ApplilinkParameters *)appParam delegate:(nullable id)delegate;
411
418+ (void)toDelegateDidAppear:(nullable ApplilinkParameters *)appParam delegate:(nullable id)delegate;
419
426+ (void)toDelegateDidDisappear:(nullable ApplilinkParameters *)appParam
427 delegate:(nullable id)delegate;
428
436+ (void)toDelegateFailOpenWithError:(nullable NSError *)error
437 appParam:(nullable ApplilinkParameters *)appParam
438 delegate:(nullable id)delegate;
439
447+ (void)toDelegateFailLoadWithError:(nullable NSError *)error
448 appParam:(nullable ApplilinkParameters *)appParam
449 delegate:(nullable id)delegate;
450
458+ (void)toDelegateFailWithError:(nullable NSError *)error
459 appParam:(nullable ApplilinkParameters *)appParam
460 delegate:(nullable id)delegate;
461
469+ (void)toDelegateFailLinkWithError:(nullable NSError *)error
470 appParam:(nullable ApplilinkParameters *)appParam
471 delegate:(nullable id)delegate;
472
479+ (void)toDelegateSoundUseStart:(nullable id)delegate;
480
486+ (void)toDelegateSoundUseFinish:(nullable id)delegate;
487
493+ (void)toDelegateMovieFinish:(nullable id)delegate;
494
495#pragma mark - Device information
496
502
507+ (void)saveDeviceInfo;
508
514+ (nullable NSDictionary *)getDeviceInfo;
515
522+ (int)getSysInfo:(int)info;
523
529+ (int)getCpuFrequency;
530
536+ (int)getNumCpus;
537
543+ (NSInteger)hwPhysMem;
544
545@end
546
547NS_ASSUME_NONNULL_END
548
549// code: language=Objective-C
550// kate: hl Objective-C;
551// vim: set ft=objc :
The applilink SDK's advert-request descriptor.
The applilink SDK's App Store product-page facade singleton.
The Applilink SDK's core entry point.
Definition ApplilinkCore.h:122
void saveDeviceInfo()
Collect the OpenGL, memory, screen, and CPU details and persist them to NSUserDefaults.
Definition ApplilinkCore.m:689
BOOL isInitializeStatusFlg()
Whether the SDK's initialisation-status flag is set.
Definition ApplilinkCore.m:344
nullable NSString * ad_udid_cache()
The cached advertising UDID without recomputation.
Definition ApplilinkCore.m:371
void buildUnderXcode6()
Flag the SDK as built with the legacy pre-Xcode 6 toolchain.
Definition ApplilinkCore.m:316
nullable NSString * appliId()
The Applilink application identifier stored in NSUserDefaults.
Definition ApplilinkCore.m:348
BOOL isInitializingFlg()
Whether the SDK's initialisation is currently in progress.
Definition ApplilinkCore.m:340
void collectDeviceInfoCore()
Save the device info and post it to the analytics endpoint.
Definition ApplilinkCore.m:680
nullable NSString * versionDev()
The Applilink SDK development version string.
Definition ApplilinkCore.m:537
BOOL isPriorityDeviceLanguages()
Whether the SDK localises using the device's preferred languages.
Definition ApplilinkCore.m:290
BOOL isBuildXcode6()
Whether the SDK was built with the Xcode 6 (or later) toolchain.
Definition ApplilinkCore.m:320
void updatePasteBoard()
Persist the cached advertising UDID to the pasteboard when a re-login is pending.
Definition ApplilinkCore.m:503
int getNumCpus()
The number of CPUs, from the HW_NCPU sysctl.
Definition ApplilinkCore.m:797
nullable NSString * pasteBoard_udid()
The pasteboard UDID, computing and caching it from the old pasteboard slot on first access.
Definition ApplilinkCore.m:400
void clearAdUDID()
Clear the advertising-UDID keychain records outside the default environment.
Definition ApplilinkCore.m:492
nullable NSString * ad_udid()
The advertising UDID, computing and caching it on first access.
Definition ApplilinkCore.m:418
nullable NSString * udid_cache()
The cached UDID without recomputation.
Definition ApplilinkCore.m:367
void clearUDID()
Clear the stored UDID and, outside the default environment, its keychain records.
Definition ApplilinkCore.m:460
nullable NSString * old_udid_cache()
The cached old UDID without recomputation.
Definition ApplilinkCore.m:375
BOOL checkUdid()
Whether either the UDID or the advertising UDID is available.
Definition ApplilinkCore.m:452
nullable UIWindow * mainWindow()
The SDK's main window, used as a fallback advert host.
Definition ApplilinkCore.m:327
nullable NSString * old_udid()
The old UDID, computing and caching it from the keychain on first access.
Definition ApplilinkCore.m:440
void unusedInStore()
Flag the SDK as used inside the store.
Definition ApplilinkCore.m:307
int getCpuFrequency()
The CPU frequency in hertz, from the HW_CPU_FREQ sysctl.
Definition ApplilinkCore.m:789
nullable NSString * currentUdid()
The current UDID, preferring the advertising UDID when advertising tracking is available.
Definition ApplilinkCore.m:354
nullable NSDictionary * getDeviceInfo()
The persisted device-information dictionary.
Definition ApplilinkCore.m:743
BOOL isUsedInStore()
Whether the SDK is currently used inside the store.
Definition ApplilinkCore.m:312
NSInteger hwPhysMem()
The physical memory size in bytes, from the HW_PHYSMEM sysctl.
Definition ApplilinkCore.m:801
UIColor * getIndicatorColor()
The tint colour of the SDK's loading indicator.
Definition ApplilinkCore.m:298
void resume()
Resume the SDK core, closing any open store and video view and re-initialising from persisted state.
Definition ApplilinkCore.m:208
void clearKeyChainOldUDID()
Clear the old-UDID keychain record and, when no UDID remains, the initialisation state.
Definition ApplilinkCore.m:477
BOOL isNavigationBarCommonAppearance()
Whether advert screens use the common navigation-bar appearance.
Definition ApplilinkCore.m:282
nullable NSString * signatureKey()
The Applilink SDK signature key.
Definition ApplilinkCore.m:533
nullable NSString * udid()
The UDID, computing and caching it from the pasteboard on first access.
Definition ApplilinkCore.m:379
void clearInitialize()
Reset the SDK core's cached initialisation state and the DAU counter.
Definition ApplilinkCore.m:268
void closeAppStore()
Close any open App Store product page.
Definition ApplilinkCore.m:527
Carries one advert request's model, location, alignment and caller request code.
Definition ApplilinkParameters.h:21
void appListSoundUseFinish()
Advert sound use finished.
void appListDidAppear()
The advert list appeared.
void appListDidDisappear()
The advert list disappeared.
void appListDidStart()
The advert list started.
void appListSoundUseStart()
Advert sound use started.
void appListMovieFinish()
An advert movie finished.