JubeatPlus 3.9.11
Loading...
Searching...
No Matches
RecommendAdWebView.h
Go to the documentation of this file.
1
20
21#import <UIKit/UIKit.h>
22
24
25NS_ASSUME_NONNULL_BEGIN
26
30@interface RecommendAdWebView : UIWebView <UIWebViewDelegate>
31
37@property(nonatomic, weak, nullable) id<ApplilinkViewDelegate> applilinkDelegate;
38
42@property(nonatomic, assign) BOOL loadComplete;
43
48@property(nonatomic, assign) BOOL reloadFlg;
49
53@property(nonatomic, assign) BOOL cancelFlg;
54
58@property(nonatomic, assign) BOOL scrollFlg;
59
63@property(nonatomic, assign) int webViewStatus;
64
68@property(nonatomic, assign) int adModel;
69
73@property(nonatomic, strong, nullable) NSString *adLocation;
74
78@property(nonatomic, assign) int verticalAlign;
79
86@property(nonatomic, unsafe_unretained, nullable) id requestCode;
87
93- (void)setInitParam;
94
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;
109
114- (void)loadRequest;
115
122- (void)loadRequestWithURL:(nullable NSString *)URL parameters:(nullable NSDictionary *)parameters;
123
128- (void)closeAdArea;
129
135- (void)setScrollEnabled:(BOOL)scrollEnabled;
136
142- (void)setScrollBoundsEnabled:(BOOL)scrollBoundsEnabled;
143
149- (void)setScrollBarEnabled:(BOOL)scrollBarEnabled;
150
155- (void)unloadRecommendView;
156
162- (void)viewDidDisappear:(BOOL)viewDidDisappear;
163
168- (void)appliListClosed;
169
176- (void)showVideoViewWithQuery:(nullable NSString *)query;
177
182- (void)appListDidStart;
183
188- (void)appListDidAppear;
189
194- (void)appListDidDisappear;
195
201- (void)appListFailLoadWithError:(nullable NSError *)error;
202
208- (void)appListFailLinkWithError:(nullable NSError *)error;
209
210@end
211
212NS_ASSUME_NONNULL_END
213
214// code: language=Objective-C
215// kate: hl Objective-C;
216// vim: set ft=objc :
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