25#import <UIKit/UIKit.h>
30NS_ASSUME_NONNULL_BEGIN
39@protocol ApplilinkCoreAdDelegate <NSObject>
66- (void)appListFailOpenWithError:(nullable NSError *)error;
72- (void)appListFailOpenWithError:(nullable NSError *)error
78- (void)appListFailLoadWithError:(nullable NSError *)error;
84- (void)appListFailLoadWithError:(nullable NSError *)error
90- (void)appListFailWithError:(nullable NSError *)error;
96- (void)appListFailWithError:(nullable NSError *)error
102- (void)appListFailLinkWithError:(nullable NSError *)error;
108- (void)appListFailLinkWithError:(nullable NSError *)error
123#pragma mark - Initialisation
139+ (void)initializeWithAppliId:(nullable NSString *)appliId
140 env:(nullable NSString *)env
142 callback:(nullable
void (^)(NSError *_Nullable error))callback;
156+ (void)appAuthSessionRegenerateWithBlock:(nullable
void (^)(NSError *_Nullable error))block;
164#pragma mark - Appearance configuration
171+ (void)setNavigationBarCommonAppearance:(BOOL)navigationBarCommonAppearance;
185+ (void)setPriorityDeviceLanguages:(BOOL)priorityDeviceLanguages;
199+ (void)setIndicatorColor:(nullable UIColor *)indicatorColor;
208#pragma mark - Build and store flags
237#pragma mark - Window and status
267#pragma mark - UDID accessors
302+ (nullable NSString *)
udid;
333#pragma mark - UDID maintenance
346+ (void)setAdUdid:(nullable NSString *)adUdid;
376+ (BOOL)showAppStoreId:(nullable NSString *)appStoreId
378 delegate:(nullable
id<SdkViewDelegate>)delegate;
386#pragma mark - Metadata
402#pragma mark - Delegate fan-out
410+ (void)toDelegateDidStart:(nullable
ApplilinkParameters *)appParam delegate:(nullable
id)delegate;
418+ (void)toDelegateDidAppear:(nullable
ApplilinkParameters *)appParam delegate:(nullable
id)delegate;
427 delegate:(nullable
id)delegate;
436+ (void)toDelegateFailOpenWithError:(nullable NSError *)error
438 delegate:(nullable
id)delegate;
447+ (void)toDelegateFailLoadWithError:(nullable NSError *)error
449 delegate:(nullable
id)delegate;
458+ (void)toDelegateFailWithError:(nullable NSError *)error
460 delegate:(nullable
id)delegate;
469+ (void)toDelegateFailLinkWithError:(nullable NSError *)error
471 delegate:(nullable
id)delegate;
479+ (void)toDelegateSoundUseStart:(nullable
id)delegate;
486+ (void)toDelegateSoundUseFinish:(nullable
id)delegate;
493+ (void)toDelegateMovieFinish:(nullable
id)delegate;
495#pragma mark - Device information
522+ (int)getSysInfo:(
int)info;
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.