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

Commit

Permalink
Added version 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-t-kinami committed Jun 26, 2018
1 parent 62ce58b commit cae0548
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 0 deletions.
52 changes: 52 additions & 0 deletions NendAd.embeddedframework/NendAd.framework/Headers/NADNativeVideo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//
// NADNativeVideo.h
// NendAdFramework
//
// Copyright © 2018年 F@N Communications, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "NADNative.h"

@class NADNativeVideo;

extern const NSInteger kNADVideoOrientationVertical;
extern const NSInteger kNADVideoOrientationHorizontal;

typedef NS_ENUM(NSInteger, NADNativeVideoClickAction) {
NADNativeVideoClickActionFullScreen = 1,
NADNativeVideoClickActionLP = 2
};

@protocol NADNativeVideoDelegate <NSObject>

@optional
- (void)nadNativeVideoDidImpression:(NADNativeVideo * _Nonnull)ad;
- (void)nadNativeVideoDidClickAd:(NADNativeVideo * _Nonnull)ad;
- (void)nadNativeVideoDidClickInformation:(NADNativeVideo * _Nonnull)ad;

@end

@interface NADNativeVideo : NSObject

@property (readwrite, nonatomic, weak, nullable) id<NADNativeVideoDelegate> delegate;
@property (readwrite, nonatomic, getter=isMutedOnFullScreen) BOOL mutedOnFullScreen;
@property (readonly, nonatomic) BOOL hasVideo;
@property (readonly, nonatomic) NSInteger orientation;
@property (readonly, nonatomic, copy, nullable) NSString *title;
@property (readonly, nonatomic, copy, nullable) NSString *advertiserName;
@property (readonly, nonatomic, copy, nullable) NSString *explanation;
@property (readonly, nonatomic) CGFloat userRating;
@property (readonly, nonatomic) NSInteger userRatingCount;
@property (readonly, nonatomic, copy, nullable) NSString *callToAction;
@property (readonly, nonatomic, copy, nullable) NSString *logoImageUrl;
@property (readonly, nonatomic, strong, nullable) UIImage *logoImage;
@property (readonly, nonatomic, strong, nullable) NADNative *staticNativeAd;

- (instancetype _Nullable)init NS_UNAVAILABLE;
- (void)registerInteractionViews:(nonnull NSArray<__kindof UIView *> *)views;
- (void)downloadLogoImageWithCompletionHandler:(void(^_Nonnull)(UIImage * _Nullable))handler;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// NADNativeVideoLoader.h
// NendAdFramework
//
// Copyright © 2018年 F@N Communications, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "NADNativeVideo.h"
#import "NADUserFeature.h"

NS_ASSUME_NONNULL_BEGIN
@interface NADNativeVideoLoader : NSObject

@property (readwrite, nonatomic, copy, nullable) NSString *userId;
@property (readwrite, nonatomic, copy, nullable) NSString *mediationName;
@property (readwrite, nonatomic, strong, nullable) NADUserFeature *userFeature;

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithSpotId:(NSString *)spotId apiKey:(NSString *)apiKey;
- (instancetype)initWithSpotId:(NSString *)spotId apiKey:(NSString *)apiKey clickAction:(NADNativeVideoClickAction)action;

- (void)setFillerStaticNativeAdId:(NSString *)spotId apiKey:(NSString *)apiKey;
- (void)loadAdWithCompletionHandler:(void(^)(NADNativeVideo * _Nullable, NSError * _Nullable))handler;

@end
NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// NADNativeVideoView.h
// NendAdFramework
//
// Copyright © 2018年 F@N Communications, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class NADNativeVideo;
@class NADNativeVideoView;

NS_ASSUME_NONNULL_BEGIN
@protocol NADNativeVideoViewDelegate <NSObject>

@optional
- (void)nadNativeVideoViewDidStartPlay:(NADNativeVideoView *)videoView;
- (void)nadNativeVideoViewDidStopPlay:(NADNativeVideoView *)videoView;
- (void)nadNativeVideoViewDidCompletePlay:(NADNativeVideoView *)videoView;
- (void)nadNativeVideoViewDidFailToPlay:(NADNativeVideoView *)videoView;
- (void)nadNativeVideoViewDidOpenFullScreen:(NADNativeVideoView *)videoView;
- (void)nadNativeVideoViewDidCloseFullScreen:(NADNativeVideoView *)videoView;

@end

@interface NADNativeVideoView : UIView

@property (readwrite, nonatomic, weak) id<NADNativeVideoViewDelegate> delegate;
@property (readwrite, nonatomic, strong) NADNativeVideo *videoAd;
@property (readwrite, nonatomic, weak, nullable) UIViewController *rootViewController;

@end
NS_ASSUME_NONNULL_END
3 changes: 3 additions & 0 deletions NendAd.embeddedframework/NendAd.framework/Headers/NendAd.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ FOUNDATION_EXPORT const unsigned char NendAdVersionString[];
#import <NendAd/NADVideoError.h>
#import <NendAd/NADUserFeature.h>
#import <NendAd/NADLogger.h>
#import <NendAd/NADNativeVideo.h>
#import <NendAd/NADNativeVideoLoader.h>
#import <NendAd/NADNativeVideoView.h>
Binary file modified NendAd.embeddedframework/NendAd.framework/Info.plist
Binary file not shown.
Binary file modified NendAd.embeddedframework/NendAd.framework/NendAd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit cae0548

Please sign in to comment.