JubeatPlus 3.9.11
Loading...
Searching...
No Matches
RecommendNetwork.h
Go to the documentation of this file.
1
12
13#import <UIKit/UIKit.h>
14
15NS_ASSUME_NONNULL_BEGIN
16
25
27typedef void (^RecommendAdStatusCallback)(NSInteger status, NSError *_Nullable error);
28
30typedef void (^RecommendAdDisplayStatusCallback)(NSDictionary *_Nullable status,
31 NSError *_Nullable error);
32
36@interface RecommendNetwork : NSObject
37
43+ (void)getAppListStatusWithCallback:(nullable RecommendAdStatusCallback)callback;
44
51+ (void)getAdStatusWithAdModel:(RecommendAdModel)adModel
52 callback:(nullable RecommendAdStatusCallback)callback;
53
61+ (void)getUnreadCountWithAdModel:(RecommendAdModel)adModel
62 adLocation:(nullable NSString *)adLocation
63 callback:(nullable RecommendAdStatusCallback)callback;
64
73+ (void)getAdDisplayStatusWithAdModel:(RecommendAdModel)adModel
74 adLocation:(nullable NSString *)adLocation
75 callback:(nullable RecommendAdDisplayStatusCallback)callback;
76
84+ (void)showOwnAdWithAdLocation:(nullable NSString *)adLocation
85 toAppliId:(nullable NSString *)appliId
86 creativeId:(nullable NSString *)creativeId;
87
96+ (void)showOwnAdWithAdLocation:(nullable NSString *)adLocation
97 adModel:(RecommendAdModel)adModel
98 toAppliId:(nullable NSString *)appliId
99 creativeId:(nullable NSString *)creativeId;
100
110+ (void)touchOwnAdWithAdLocation:(nullable NSString *)adLocation
111 toAppliId:(nullable NSString *)appliId
112 creativeId:(nullable NSString *)creativeId
113 requestCode:(nullable id)requestCode
114 delegate:(nullable id)delegate;
115
126+ (void)touchOwnAdWithAdLocation:(nullable NSString *)adLocation
127 adModel:(RecommendAdModel)adModel
128 toAppliId:(nullable NSString *)appliId
129 creativeId:(nullable NSString *)creativeId
130 requestCode:(nullable id)requestCode
131 delegate:(nullable id)delegate;
132
139+ (void)openAppListWithAdLocation:(nullable NSString *)adLocation delegate:(nullable id)delegate;
140
148+ (void)openAppListWithAdLocation:(nullable NSString *)adLocation
149 requestCode:(nullable id)requestCode
150 delegate:(nullable id)delegate;
151
159+ (void)openAdScreenWithAdModel:(RecommendAdModel)adModel
160 adLocation:(nullable NSString *)adLocation
161 delegate:(nullable id)delegate;
162
171+ (void)openAdScreenWithAdModel:(RecommendAdModel)adModel
172 adLocation:(nullable NSString *)adLocation
173 requestCode:(nullable id)requestCode
174 delegate:(nullable id)delegate;
175
186+ (void)openAdAreaWithParentView:(nullable UIView *)parentView
187 rect:(CGRect)rect
188 adModel:(RecommendAdModel)adModel
189 adLocation:(nullable NSString *)adLocation
190 verticalAlign:(int)verticalAlign
191 delegate:(nullable id)delegate;
192
204+ (void)openAdAreaWithParentView:(nullable UIView *)parentView
205 rect:(CGRect)rect
206 adModel:(RecommendAdModel)adModel
207 adLocation:(nullable NSString *)adLocation
208 verticalAlign:(int)verticalAlign
209 requestCode:(nullable id)requestCode
210 delegate:(nullable id)delegate;
211
218+ (void)openInterstitialWithAdLocation:(nullable NSString *)adLocation
219 delegate:(nullable id)delegate;
220
228+ (void)openInterstitialWithAdLocation:(nullable NSString *)adLocation
229 requestCode:(nullable id)requestCode
230 delegate:(nullable id)delegate;
231
238+ (void)openInterstitialMovieWithAdLocation:(nullable NSString *)adLocation
239 delegate:(nullable id)delegate;
240
248+ (void)openInterstitialMovieWithAdLocation:(nullable NSString *)adLocation
249 requestCode:(nullable id)requestCode
250 delegate:(nullable id)delegate;
251
253+ (void)closeAdScreen;
254
260+ (void)closeAdAreaWithParentView:(nullable UIView *)parentView;
261
268+ (void)setAdAreaVisibleWithParentView:(nullable UIView *)parentView flag:(BOOL)flag;
269
270@end
271
272NS_ASSUME_NONNULL_END
273
274// code: language=Objective-C
275// kate: hl Objective-C;
276// vim: set ft=objc :
void(^ RecommendAdStatusCallback)(NSInteger status, NSError *_Nullable error)
Called with an advert status code and an optional error.
Definition RecommendNetwork.h:27
RecommendAdModel
The recommend advert models.
Definition RecommendNetwork.h:20
@ RecommendAdModelAppList
The companion-application list advert model.
Definition RecommendNetwork.h:21
@ RecommendAdModelOwnAd
The first-party (own) advert model.
Definition RecommendNetwork.h:23
@ RecommendAdModelInterstitial
The full-screen interstitial advert model.
Definition RecommendNetwork.h:22
void(^ RecommendAdDisplayStatusCallback)(NSDictionary *_Nullable status, NSError *_Nullable error)
Called with an advert display-status dictionary and an optional error.
Definition RecommendNetwork.h:30
The recommend network's public advert facade.
Definition RecommendNetwork.h:37
void closeAdScreen()
Closes the advert screen.
Definition RecommendNetwork.m:359