Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit cae0548

Browse files
committed
Added version 5.0.0
1 parent 62ce58b commit cae0548

File tree

9 files changed

+117
-0
lines changed

9 files changed

+117
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
//
2+
// NADNativeVideo.h
3+
// NendAdFramework
4+
//
5+
// Copyright © 2018年 F@N Communications, Inc. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
#import <UIKit/UIKit.h>
10+
11+
#import "NADNative.h"
12+
13+
@class NADNativeVideo;
14+
15+
extern const NSInteger kNADVideoOrientationVertical;
16+
extern const NSInteger kNADVideoOrientationHorizontal;
17+
18+
typedef NS_ENUM(NSInteger, NADNativeVideoClickAction) {
19+
NADNativeVideoClickActionFullScreen = 1,
20+
NADNativeVideoClickActionLP = 2
21+
};
22+
23+
@protocol NADNativeVideoDelegate <NSObject>
24+
25+
@optional
26+
- (void)nadNativeVideoDidImpression:(NADNativeVideo * _Nonnull)ad;
27+
- (void)nadNativeVideoDidClickAd:(NADNativeVideo * _Nonnull)ad;
28+
- (void)nadNativeVideoDidClickInformation:(NADNativeVideo * _Nonnull)ad;
29+
30+
@end
31+
32+
@interface NADNativeVideo : NSObject
33+
34+
@property (readwrite, nonatomic, weak, nullable) id<NADNativeVideoDelegate> delegate;
35+
@property (readwrite, nonatomic, getter=isMutedOnFullScreen) BOOL mutedOnFullScreen;
36+
@property (readonly, nonatomic) BOOL hasVideo;
37+
@property (readonly, nonatomic) NSInteger orientation;
38+
@property (readonly, nonatomic, copy, nullable) NSString *title;
39+
@property (readonly, nonatomic, copy, nullable) NSString *advertiserName;
40+
@property (readonly, nonatomic, copy, nullable) NSString *explanation;
41+
@property (readonly, nonatomic) CGFloat userRating;
42+
@property (readonly, nonatomic) NSInteger userRatingCount;
43+
@property (readonly, nonatomic, copy, nullable) NSString *callToAction;
44+
@property (readonly, nonatomic, copy, nullable) NSString *logoImageUrl;
45+
@property (readonly, nonatomic, strong, nullable) UIImage *logoImage;
46+
@property (readonly, nonatomic, strong, nullable) NADNative *staticNativeAd;
47+
48+
- (instancetype _Nullable)init NS_UNAVAILABLE;
49+
- (void)registerInteractionViews:(nonnull NSArray<__kindof UIView *> *)views;
50+
- (void)downloadLogoImageWithCompletionHandler:(void(^_Nonnull)(UIImage * _Nullable))handler;
51+
52+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// NADNativeVideoLoader.h
3+
// NendAdFramework
4+
//
5+
// Copyright © 2018年 F@N Communications, Inc. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
#import "NADNativeVideo.h"
11+
#import "NADUserFeature.h"
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
@interface NADNativeVideoLoader : NSObject
15+
16+
@property (readwrite, nonatomic, copy, nullable) NSString *userId;
17+
@property (readwrite, nonatomic, copy, nullable) NSString *mediationName;
18+
@property (readwrite, nonatomic, strong, nullable) NADUserFeature *userFeature;
19+
20+
- (instancetype)init NS_UNAVAILABLE;
21+
- (instancetype)initWithSpotId:(NSString *)spotId apiKey:(NSString *)apiKey;
22+
- (instancetype)initWithSpotId:(NSString *)spotId apiKey:(NSString *)apiKey clickAction:(NADNativeVideoClickAction)action;
23+
24+
- (void)setFillerStaticNativeAdId:(NSString *)spotId apiKey:(NSString *)apiKey;
25+
- (void)loadAdWithCompletionHandler:(void(^)(NADNativeVideo * _Nullable, NSError * _Nullable))handler;
26+
27+
@end
28+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//
2+
// NADNativeVideoView.h
3+
// NendAdFramework
4+
//
5+
// Copyright © 2018年 F@N Communications, Inc. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
#import <UIKit/UIKit.h>
10+
11+
@class NADNativeVideo;
12+
@class NADNativeVideoView;
13+
14+
NS_ASSUME_NONNULL_BEGIN
15+
@protocol NADNativeVideoViewDelegate <NSObject>
16+
17+
@optional
18+
- (void)nadNativeVideoViewDidStartPlay:(NADNativeVideoView *)videoView;
19+
- (void)nadNativeVideoViewDidStopPlay:(NADNativeVideoView *)videoView;
20+
- (void)nadNativeVideoViewDidCompletePlay:(NADNativeVideoView *)videoView;
21+
- (void)nadNativeVideoViewDidFailToPlay:(NADNativeVideoView *)videoView;
22+
- (void)nadNativeVideoViewDidOpenFullScreen:(NADNativeVideoView *)videoView;
23+
- (void)nadNativeVideoViewDidCloseFullScreen:(NADNativeVideoView *)videoView;
24+
25+
@end
26+
27+
@interface NADNativeVideoView : UIView
28+
29+
@property (readwrite, nonatomic, weak) id<NADNativeVideoViewDelegate> delegate;
30+
@property (readwrite, nonatomic, strong) NADNativeVideo *videoAd;
31+
@property (readwrite, nonatomic, weak, nullable) UIViewController *rootViewController;
32+
33+
@end
34+
NS_ASSUME_NONNULL_END

NendAd.embeddedframework/NendAd.framework/Headers/NendAd.h

+3
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ FOUNDATION_EXPORT const unsigned char NendAdVersionString[];
2929
#import <NendAd/NADVideoError.h>
3030
#import <NendAd/NADUserFeature.h>
3131
#import <NendAd/NADLogger.h>
32+
#import <NendAd/NADNativeVideo.h>
33+
#import <NendAd/NADNativeVideoLoader.h>
34+
#import <NendAd/NADNativeVideoView.h>
Binary file not shown.
4.05 MB
Binary file not shown.

0 commit comments

Comments
 (0)