15#import <UIKit/UIKit.h>
24@protocol InterstitiaViewDelegate;
26NS_ASSUME_NONNULL_BEGIN
61@property(nonatomic, strong, nullable) NSString *
urlString;
81@property(nonatomic, weak, nullable) id<ApplilinkViewDelegate>
adAreaDelegate;
131- (BOOL)isInstalledAppliWithScheme:(nullable NSString *)scheme;
138- (void)startWithCallback:(nullable
void (^)(NSError *_Nullable error))callback;
145- (void)startSessionWithCallback:(nullable
void (^)(NSError *_Nullable error))callback;
152- (void)appliListWithCallBack:(nullable
void (^)(
id _Nullable list,
153 NSError *_Nullable error))callback;
160- (void)appliListCacheWithCallBack:(nullable
void (^)(
id _Nullable list,
161 NSError *_Nullable error))callback;
169- (void)getAdStatusWithAdModel:(
int)adModel
171 (nullable
void (^)(NSInteger status, NSError *_Nullable error))callback;
180- (void)getUnreadCountWithAdModel:(
int)adModel
181 adLocation:(nullable NSString *)adLocation
182 callback:(nullable
void (^)(NSInteger status,
183 NSError *_Nullable error))callback;
192- (void)getAdDisplayStatusWithAdModel:(
int)adModel
193 adLocation:(nullable NSString *)adLocation
194 callback:(nullable
void (^)(NSDictionary *_Nullable status,
195 NSError *_Nullable error))callback;
202- (void)getAllAdStatusWithCallback:(nullable
void (^)(NSError *_Nullable error))callback;
226- (void)openAdScreenWithParentView:(nullable UIView *)parentView
228 adLocation:(nullable NSString *)adLocation
229 verticalAlign:(
int)verticalAlign
230 requestCode:(nullable
id)requestCode
231 delegate:(nullable
id)delegate;
244- (void)openAdAreaWithParentView:(nullable UIView *)parentView
247 adLocation:(nullable NSString *)adLocation
248 verticalAlign:(
int)verticalAlign
249 requestCode:(nullable
id)requestCode
250 delegate:(nullable
id)delegate;
261- (void)openFullViewControllerWithAdModel:(
int)adModel
262 adLocation:(nullable NSString *)adLocation
263 verticalAlign:(
int)verticalAlign
264 requestCode:(nullable
id)requestCode
265 delegate:(nullable
id)delegate;
276- (void)openMovieViewControllerWithAdModel:(
int)adModel
277 adLocation:(nullable NSString *)adLocation
278 verticalAlign:(
int)verticalAlign
279 requestCode:(nullable
id)requestCode
280 delegate:(nullable
id)delegate;
293- (void)showVideoViewWithQuery:(nullable NSString *)query;
301- (void)rotateWithInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
302 duration:(NSTimeInterval)duration;
310- (int)redirectViewContollerWithRequest:(nullable NSURLRequest *)request;
318- (int)redirectWithRequest:(nullable NSURLRequest *)request;
332- (int)redirectWithRequest:(nullable NSURLRequest *)request
341- (nullable id)getTemporaryCacheWithAdModel:(
int)adModel;
376- (void)postAnalysisListRegistWithAdType:(
int)adType
378 adLocation:(nullable NSString *)adLocation
379 impressionId:(nullable NSString *)impressionId;
388- (void)showOwnAdWithAdLocation:(nullable NSString *)adLocation
389 toAppliId:(nullable NSString *)appliId
390 creativeId:(nullable NSString *)creativeId;
400- (void)showOwnAdWithAdLocation:(nullable NSString *)adLocation
402 toAppliId:(nullable NSString *)appliId
403 creativeId:(nullable NSString *)creativeId;
414- (void)touchOwnAdWithAdLocation:(nullable NSString *)adLocation
415 toAppliId:(nullable NSString *)appliId
416 creativeId:(nullable NSString *)creativeId
417 requestCode:(nullable
id)requestCode
418 delegate:(nullable
id)delegate;
430- (void)touchOwnAdWithAdLocation:(nullable NSString *)adLocation
432 toAppliId:(nullable NSString *)appliId
433 creativeId:(nullable NSString *)creativeId
434 requestCode:(nullable
id)requestCode
435 delegate:(nullable
id)delegate;
446- (void)linkActionWithDefaultScheme:(nullable NSString *)defaultScheme
447 adIdTo:(nullable NSString *)adIdTo
448 adType:(nullable NSString *)adType
449 adModel:(nullable NSString *)adModel
450 delegate:(nullable
id)delegate;
458- (void)linkActionWithURL:(nullable NSString *)url delegate:(nullable
id)delegate;
466- (void)setUniqueAdWithAdLocation:(nullable NSString *)adLocation
467 impressionId:(nullable NSString *)impressionId;
475- (nullable id)getUniqueAdWithAdLocation:(nullable NSString *)adLocation;
482- (void)failLoadWithError:(nullable NSError *)error;
489- (void)finishLoadWithResponse:(nullable
id)response;
497- (BOOL)redirectStartLoad:(nullable NSURLRequest *)request;
534- (void)appListFailOpenWithError:(nullable NSError *)error;
541- (void)appListFailLoadWithError:(nullable NSError *)error;
548- (void)appListFailWithError:(nullable NSError *)error;
585- (void)failOpenNoticeWithError:(nullable NSError *)error;
592- (void)failLinkNoticeWithError:(nullable NSError *)error;
621- (void)appStoreFailLoadNoticeWithError:(nullable NSError *)error
644- (nullable NSString *)getMovideEndUrlWithAdIdFrom:(nullable NSString *)adIdFrom
645 adIdTo:(nullable NSString *)adIdTo
646 adModel:(nullable NSString *)adModel
647 adLocation:(nullable NSString *)adLocation
648 impressionId:(nullable NSString *)impressionId
649 creativeId:(nullable NSString *)creativeId
650 displayNumber:(nullable NSString *)displayNumber
651 installFlg:(nullable NSString *)installFlg;
The applilink SDK's advert-request descriptor.
The applilink SDK's App Store product-page facade singleton.
The applilink SDK's connection runner.
The applilink advert-view delegate protocol.
Carries one advert request's model, location, alignment and caller request code.
Definition ApplilinkParameters.h:21
The Applilink recommend SDK's shared advert controller.
Definition RecommendCore.h:31
id< ApplilinkViewDelegate > adAreaDelegate
The delegate that receives advert-area lifecycle callbacks.
Definition RecommendCore.h:81
id< ApplilinkViewDelegate > applilinkDelegate
The delegate that receives Applilink advert-screen lifecycle callbacks.
Definition RecommendCore.h:51
ApplilinkParameters * uniqueApplilinkParams
The advert-request parameters for the first-party advert click in flight.
Definition RecommendCore.h:96
void closeAdScreen()
Close the advert screen.
Definition RecommendCore.m:925
void clearAdStatus()
Clear the cached banner status.
Definition RecommendCore.m:1154
void appListDidDisappear()
Notify the delegate that the installed-application list disappeared.
Definition RecommendCore.m:1630
instancetype sharedInstance()
The shared recommend-core instance.
Definition RecommendCore.m:222
void closeNotice()
Notify the delegate that the advert closed.
Definition RecommendCore.m:1732
BOOL redirectFlg
Whether a redirect (App Store or external application launch) is in flight.
Definition RecommendCore.h:76
BOOL canUseBannerCache()
Whether the banner cache may be used, clearing it when no UDID is available.
Definition RecommendCore.m:1144
BOOL adScreenviewCloseFlg
Whether the advert screen has already been closed, guarding a double close.
Definition RecommendCore.h:71
void clearInitialize()
Reset the initialisation flag and clear the cached advert data, expiry, and cache folder.
Definition RecommendCore.m:268
void clearAllAdData()
Clear every cached advert-data record.
Definition RecommendCore.m:564
void appListSoundUseStart()
Notify the delegate that the advert list started using sound.
Definition RecommendCore.m:1711
instancetype init()
Initialise the recommend core, serialising the super initialisation on its work queue.
Definition RecommendCore.m:251
void clearData()
Clear recommend SDK data, except when the server environment is disabled ("0").
Definition RecommendCore.m:1167
void releaseInterstitialViewController()
Release the full-screen (interstitial) advert view controller.
Definition RecommendCore.m:1598
void clearSession()
Clear every stored HTTP cookie, ending the recommend session.
Definition RecommendCore.m:1159
void openedNotice()
Notify the delegate that the advert opened.
Definition RecommendCore.m:1725
RecommendWebViewController * adScreenViewController
The advert-screen web view controller currently presented, if any.
Definition RecommendCore.h:46
void appListDidStart()
Notify the delegate that the installed-application list started.
Definition RecommendCore.m:1608
NSString * urlString
The pending App Store deep-link URL string, held between a redirect and its launch.
Definition RecommendCore.h:61
BOOL navigationBarHidden
Whether the advert screen hides its navigation bar.
Definition RecommendCore.h:66
RecommendFullScreenController * interstitialViewController
The full-screen (interstitial) advert view controller currently presented, if any.
Definition RecommendCore.h:41
void appListDidAppear()
Notify the delegate that the installed-application list appeared.
Definition RecommendCore.m:1619
void startedNotice()
Notify the delegate that the advert started.
Definition RecommendCore.m:1721
id< InterstitiaViewDelegate > adScreenDelegate
The delegate that receives interstitial advert-screen lifecycle callbacks.
Definition RecommendCore.h:86
id< ApplilinkViewDelegate > uniqueAdDelegate
The delegate that receives first-party advert (click) lifecycle callbacks.
Definition RecommendCore.h:91
int initializeFlg
Whether the recommend core has been initialised.
Definition RecommendCore.h:36
void releaseAdScreenViewController()
Release the advert-screen view controller.
Definition RecommendCore.m:1590
BOOL isInitialized()
Whether the recommend core is fully initialised.
Definition RecommendCore.m:264
ApplilinkParameters * applilinkParams
The advert-request parameters for the advert-screen presentation in flight.
Definition RecommendCore.h:56
void appListSoundUseFinish()
Notify the delegate that the advert list finished using sound.
Definition RecommendCore.m:1715
void reloadAllAdData()
Clear and re-fetch every cached advert-data record.
Definition RecommendCore.m:568
The applilink recommend full-screen (interstitial) advert controller.
Definition RecommendFullScreenController.h:38
A reward web view controller specialised for applilink recommendation content.
Definition RecommendWebViewController.h:21
What an ApplilinkURLConnection reports back while it runs a request.
Definition ApplilinkURLConnection.h:20
The delegate the SDK's advert, App Store, and web views all report back through.
Definition ApplilinkStore.h:27