21#import <UIKit/UIKit.h>
25NS_ASSUME_NONNULL_BEGIN
73@property(nonatomic, strong, nullable) NSString *
adLocation;
86@property(nonatomic, unsafe_unretained, nullable)
id requestCode;
104- (void)loadRequestWithAdModel:(
int)adModel
105 adLocation:(nullable NSString *)adLocation
106 verticalAlign:(
int)verticalAlign
107 requestCode:(nullable
id)requestCode
108 delegate:(nullable
id<ApplilinkViewDelegate>)delegate;
122- (void)loadRequestWithURL:(nullable NSString *)URL parameters:(nullable NSDictionary *)parameters;
135- (void)setScrollEnabled:(BOOL)scrollEnabled;
142- (void)setScrollBoundsEnabled:(BOOL)scrollBoundsEnabled;
149- (void)setScrollBarEnabled:(BOOL)scrollBarEnabled;
162- (void)viewDidDisappear:(BOOL)viewDidDisappear;
176- (void)showVideoViewWithQuery:(nullable NSString *)query;
201- (void)appListFailLoadWithError:(nullable NSError *)error;
208- (void)appListFailLinkWithError:(nullable NSError *)error;
The applilink advert-view delegate protocol.
The applilink recommend advert web view.
Definition RecommendAdWebView.h:30
void appListDidAppear()
Notify the delegate that the advert list appeared.
Definition RecommendAdWebView.m:558
void appListDidStart()
Notify the delegate that the advert list started.
Definition RecommendAdWebView.m:550
void closeAdArea()
Stop any in-flight load and notify the delegate that the advert list closed.
Definition RecommendAdWebView.m:369
id requestCode
The caller's opaque request code echoed back in delegate callbacks.
Definition RecommendAdWebView.h:86
void unloadRecommendView()
Stop loading the advert web view.
Definition RecommendAdWebView.m:377
void setInitParam()
Apply the shared advert web-view configuration (transparent background, autoresizing,...
Definition RecommendAdWebView.m:213
NSString * adLocation
The advert-location identifier being displayed.
Definition RecommendAdWebView.h:73
BOOL scrollFlg
Whether scrolling is enabled for the advert web view.
Definition RecommendAdWebView.h:58
void loadRequest()
Begin the recommend session and load the advert on the main queue.
Definition RecommendAdWebView.m:282
id< ApplilinkViewDelegate > applilinkDelegate
The advert delegate notified of the advert-list lifecycle and failures.
Definition RecommendAdWebView.h:37
BOOL reloadFlg
Whether the advert web view has already loaded once (so a reload skips the transparent-background set...
Definition RecommendAdWebView.h:48
void appListDidDisappear()
Notify the delegate that the advert list disappeared and clear the delegate.
Definition RecommendAdWebView.m:565
BOOL loadComplete
Whether the advert web content has finished loading.
Definition RecommendAdWebView.h:42
int adModel
The advert-model identifier being displayed.
Definition RecommendAdWebView.h:68
BOOL cancelFlg
Whether the advert load has been cancelled (for example by removal from the view tree).
Definition RecommendAdWebView.h:53
int verticalAlign
The vertical-alignment identifier for the advert.
Definition RecommendAdWebView.h:78
void appliListClosed()
Unload the advert, clear the advert location, and notify that the advert list disappeared.
Definition RecommendAdWebView.m:382
int webViewStatus
The current web-view load status (0 idle, 1 started, 2 finished).
Definition RecommendAdWebView.h:63