JubeatPlus 3.9.11
Loading...
Searching...
No Matches
RecommendCore.h
Go to the documentation of this file.
1
14
15#import <UIKit/UIKit.h>
16
18#import "ApplilinkStore.h"
21
24@protocol InterstitiaViewDelegate;
25
26NS_ASSUME_NONNULL_BEGIN
27
32
36@property(nonatomic, assign) int initializeFlg;
37
41@property(nonatomic, strong, nullable) RecommendFullScreenController *interstitialViewController;
42
46@property(nonatomic, strong, nullable) RecommendWebViewController *adScreenViewController;
47
51@property(nonatomic, weak, nullable) id<ApplilinkViewDelegate> applilinkDelegate;
52
56@property(nonatomic, copy, nullable) ApplilinkParameters *applilinkParams;
57
61@property(nonatomic, strong, nullable) NSString *urlString;
62
66@property(nonatomic, assign) BOOL navigationBarHidden;
67
71@property(nonatomic, assign) BOOL adScreenviewCloseFlg;
72
76@property(nonatomic, assign) BOOL redirectFlg;
77
81@property(nonatomic, weak, nullable) id<ApplilinkViewDelegate> adAreaDelegate;
82
86@property(nonatomic, weak, nullable) id<InterstitiaViewDelegate> adScreenDelegate;
87
91@property(nonatomic, weak, nullable) id<ApplilinkViewDelegate> uniqueAdDelegate;
92
96@property(nonatomic, copy, nullable) ApplilinkParameters *uniqueApplilinkParams;
97
103+ (instancetype)sharedInstance;
104
110- (instancetype)init;
111
117- (BOOL)isInitialized;
118
123- (void)clearInitialize;
124
131- (BOOL)isInstalledAppliWithScheme:(nullable NSString *)scheme;
132
138- (void)startWithCallback:(nullable void (^)(NSError *_Nullable error))callback;
139
145- (void)startSessionWithCallback:(nullable void (^)(NSError *_Nullable error))callback;
146
152- (void)appliListWithCallBack:(nullable void (^)(id _Nullable list,
153 NSError *_Nullable error))callback;
154
160- (void)appliListCacheWithCallBack:(nullable void (^)(id _Nullable list,
161 NSError *_Nullable error))callback;
162
169- (void)getAdStatusWithAdModel:(int)adModel
170 callback:
171 (nullable void (^)(NSInteger status, NSError *_Nullable error))callback;
172
180- (void)getUnreadCountWithAdModel:(int)adModel
181 adLocation:(nullable NSString *)adLocation
182 callback:(nullable void (^)(NSInteger status,
183 NSError *_Nullable error))callback;
184
192- (void)getAdDisplayStatusWithAdModel:(int)adModel
193 adLocation:(nullable NSString *)adLocation
194 callback:(nullable void (^)(NSDictionary *_Nullable status,
195 NSError *_Nullable error))callback;
196
202- (void)getAllAdStatusWithCallback:(nullable void (^)(NSError *_Nullable error))callback;
203
208- (void)clearAllAdData;
209
214- (void)reloadAllAdData;
215
226- (void)openAdScreenWithParentView:(nullable UIView *)parentView
227 adModel:(int)adModel
228 adLocation:(nullable NSString *)adLocation
229 verticalAlign:(int)verticalAlign
230 requestCode:(nullable id)requestCode
231 delegate:(nullable id)delegate;
232
244- (void)openAdAreaWithParentView:(nullable UIView *)parentView
245 rect:(CGRect)rect
246 adModel:(int)adModel
247 adLocation:(nullable NSString *)adLocation
248 verticalAlign:(int)verticalAlign
249 requestCode:(nullable id)requestCode
250 delegate:(nullable id)delegate;
251
261- (void)openFullViewControllerWithAdModel:(int)adModel
262 adLocation:(nullable NSString *)adLocation
263 verticalAlign:(int)verticalAlign
264 requestCode:(nullable id)requestCode
265 delegate:(nullable id)delegate;
266
276- (void)openMovieViewControllerWithAdModel:(int)adModel
277 adLocation:(nullable NSString *)adLocation
278 verticalAlign:(int)verticalAlign
279 requestCode:(nullable id)requestCode
280 delegate:(nullable id)delegate;
281
286- (void)closeAdScreen;
287
293- (void)showVideoViewWithQuery:(nullable NSString *)query;
294
301- (void)rotateWithInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
302 duration:(NSTimeInterval)duration;
303
310- (int)redirectViewContollerWithRequest:(nullable NSURLRequest *)request;
311
318- (int)redirectWithRequest:(nullable NSURLRequest *)request;
319
332- (int)redirectWithRequest:(nullable NSURLRequest *)request
333 appParam:(nullable ApplilinkParameters *)appParam;
334
341- (nullable id)getTemporaryCacheWithAdModel:(int)adModel;
342
348- (BOOL)canUseBannerCache;
349
354- (void)clearAdStatus;
355
360- (void)clearSession;
361
366+ (void)clearData;
367
376- (void)postAnalysisListRegistWithAdType:(int)adType
377 AdModel:(int)adModel
378 adLocation:(nullable NSString *)adLocation
379 impressionId:(nullable NSString *)impressionId;
380
388- (void)showOwnAdWithAdLocation:(nullable NSString *)adLocation
389 toAppliId:(nullable NSString *)appliId
390 creativeId:(nullable NSString *)creativeId;
391
400- (void)showOwnAdWithAdLocation:(nullable NSString *)adLocation
401 adModel:(int)adModel
402 toAppliId:(nullable NSString *)appliId
403 creativeId:(nullable NSString *)creativeId;
404
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;
419
430- (void)touchOwnAdWithAdLocation:(nullable NSString *)adLocation
431 adModel:(int)adModel
432 toAppliId:(nullable NSString *)appliId
433 creativeId:(nullable NSString *)creativeId
434 requestCode:(nullable id)requestCode
435 delegate:(nullable id)delegate;
436
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;
451
458- (void)linkActionWithURL:(nullable NSString *)url delegate:(nullable id)delegate;
459
466- (void)setUniqueAdWithAdLocation:(nullable NSString *)adLocation
467 impressionId:(nullable NSString *)impressionId;
468
475- (nullable id)getUniqueAdWithAdLocation:(nullable NSString *)adLocation;
476
482- (void)failLoadWithError:(nullable NSError *)error;
483
489- (void)finishLoadWithResponse:(nullable id)response;
490
497- (BOOL)redirectStartLoad:(nullable NSURLRequest *)request;
498
504
510
515- (void)appListDidStart;
516
521- (void)appListDidAppear;
522
527- (void)appListDidDisappear;
528
534- (void)appListFailOpenWithError:(nullable NSError *)error;
535
541- (void)appListFailLoadWithError:(nullable NSError *)error;
542
548- (void)appListFailWithError:(nullable NSError *)error;
549
555
561
566- (void)startedNotice;
567
572- (void)openedNotice;
573
578- (void)closeNotice;
579
585- (void)failOpenNoticeWithError:(nullable NSError *)error;
586
592- (void)failLinkNoticeWithError:(nullable NSError *)error;
593
599- (void)appStoreOpenedNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
600
606- (void)appStoreCloseNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
607
613- (void)appStoreClosedNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
614
621- (void)appStoreFailLoadNoticeWithError:(nullable NSError *)error
622 appParam:(nullable ApplilinkParameters *)appParam;
623
629- (void)appStoreTransitionNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
630
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;
652
653@end
654
655NS_ASSUME_NONNULL_END
656
657// code: language=Objective-C
658// kate: hl Objective-C;
659// 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 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