Skip to content

Commit f5fdda4

Browse files
committed
Frameworks
1 parent ecb4030 commit f5fdda4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2188
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.framework filter=lfs diff=lfs merge=lfs -text
2+
plugins/2018.3326/iphone-sim/resources/Frameworks/PAGAdSDK.framework/PAGAdSDK filter=lfs diff=lfs merge=lfs -text
3+
plugins/2018.3326/iphone/resources/Frameworks/PAGAdSDK.framework/PAGAdSDK filter=lfs diff=lfs merge=lfs -text
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// PAGAdClientBiddingProtocol.h
3+
// Pods
4+
//
5+
// Created by bytedance on 2021/9/14.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
@protocol PAGAdClientBiddingProtocol <NSObject>
11+
12+
@optional
13+
14+
/// invoke this method when the bidding succeeds (strongly recommended) 当竞价成功调用此方法(强烈推荐)
15+
/// @param auctionBidToWin the seccond place bidder's price 竞价方第二名的价格
16+
- (void)win:(nullable NSNumber*)auctionBidToWin;
17+
18+
/// invoke this method when the bidding fails (strongly recommended) 当竞价失败调用此方法(强烈推荐)
19+
/// @param auctionPrice auction price 竞价
20+
/// @param lossReason Reasons for failed bidding 失败的原因
21+
/// @param winBidder Who won the bid 谁赢了竞价
22+
- (void)loss:(nullable NSNumber*)auctionPrice lossReason:(nullable NSString*)lossReason winBidder:(nullable NSString*)winBidder;
23+
24+
@end
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// PAGADDelegate.h
3+
// PAGAdSDK
4+
//
5+
// Created by bytedance on 2022/4/7.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@protocol PAGAdProtocol;
13+
14+
@protocol PAGAdDelegate <NSObject>
15+
16+
@optional
17+
18+
/// This method is called when the ad has been shown
19+
- (void)adDidShow:(id<PAGAdProtocol>)ad;
20+
21+
/// This method is called when the add has been clicked
22+
- (void)adDidClick:(id<PAGAdProtocol>)ad;
23+
24+
///This method is called when the ad has been dismissed.
25+
- (void)adDidDismiss:(id<PAGAdProtocol>)ad;
26+
27+
///This method is called when the ad has been show fail
28+
- (void)adDidShowFail:(id<PAGAdProtocol>)ad error:(NSError *)error;
29+
30+
@end
31+
32+
NS_ASSUME_NONNULL_END
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// PAGAdProtocol.h
3+
// PangleSDK
4+
//
5+
// Created by bytedance on 2022/4/7.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@protocol PAGAdProtocol <NSObject>
13+
14+
/// return extra info
15+
- (nullable NSDictionary *)getMediaExtraInfo;
16+
17+
@end
18+
19+
NS_ASSUME_NONNULL_END
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// PAGAdPublicDefine.h
3+
// Pods
4+
//
5+
// Created by bytedance on 2022/5/16.
6+
//
7+
8+
#ifndef PAGAdPublicDefine_h
9+
#define PAGAdPublicDefine_h
10+
11+
FOUNDATION_EXPORT NSString * const PAGAdSDKErrorDomain;
12+
13+
typedef NS_ENUM(NSUInteger, PAGAdErrorCode) {
14+
PAGAdErrorCodeSlotIdNil = 1,
15+
PAGAdErrorCodeRequestNil = 2,
16+
};
17+
18+
#endif /* PAGAdPublicDefine_h */
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// PAGAdSDK.h
3+
// PAGAdSDK
4+
//
5+
// Copyright © 2017年 bytedance. All rights reserved.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
// In this header, you should import all the public headers of your framework using statements like #import <PAGAdSDK/PublicHeader.h>
10+
11+
#import <PAGAdSDK/PAGAdClientBiddingProtocol.h>
12+
#import <PAGAdSDK/PAGAdDelegate.h>
13+
#import <PAGAdSDK/PAGAdProtocol.h>
14+
#import <PAGAdSDK/PAGAdPublicDefine.h>
15+
#import <PAGAdSDK/PAGAdSDK.h>
16+
#import <PAGAdSDK/PAGAdSize.h>
17+
#import <PAGAdSDK/PAGAppOpenRequest.h>
18+
#import <PAGAdSDK/PAGBannerAd.h>
19+
#import <PAGAdSDK/PAGBannerAdDelegate.h>
20+
#import <PAGAdSDK/PAGBannerRequest.h>
21+
#import <PAGAdSDK/PAGConfig.h>
22+
#import <PAGAdSDK/PAGInterstitialRequest.h>
23+
#import <PAGAdSDK/PAGLAppOpenAd.h>
24+
#import <PAGAdSDK/PAGLAppOpenAdDelegate.h>
25+
#import <PAGAdSDK/PAGLImage.h>
26+
#import <PAGAdSDK/PAGLInterstitialAd.h>
27+
#import <PAGAdSDK/PAGLInterstitialAdDelegate.h>
28+
#import <PAGAdSDK/PAGLMaterialMeta.h>
29+
#import <PAGAdSDK/PAGLNativeAd.h>
30+
#import <PAGAdSDK/PAGLNativeAdDelegate.h>
31+
#import <PAGAdSDK/PAGLNativeAdRelatedView.h>
32+
#import <PAGAdSDK/PAGMAdNetworkExtras.h>
33+
#import <PAGAdSDK/PAGMediaView.h>
34+
#import <PAGAdSDK/PAGNativeRequest.h>
35+
#import <PAGAdSDK/PAGRequest.h>
36+
#import <PAGAdSDK/PAGRewardModel.h>
37+
#import <PAGAdSDK/PAGRewardedAd.h>
38+
#import <PAGAdSDK/PAGRewardedAdDelegate.h>
39+
#import <PAGAdSDK/PAGRewardedRequest.h>
40+
#import <PAGAdSDK/PAGSdk.h>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// PAGAdSize.h
3+
// PangleAPI
4+
//
5+
// Created by bytedance on 2022/2/25.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
struct PAGAdSize {
11+
CGSize size;
12+
};
13+
14+
typedef struct PAGAdSize PAGBannerAdSize;
15+
16+
CG_EXTERN PAGBannerAdSize const kPAGBannerSize320x50;
17+
CG_EXTERN PAGBannerAdSize const kPAGBannerSize300x250;
18+
/// Only for iPad banner ad
19+
CG_EXTERN PAGBannerAdSize const kPAGBannerSize728x90;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// PAGAppOpenRequest.h
3+
// PAGAdSDK-PAGAdSDK
4+
//
5+
// Created by ByteDance on 2022/4/26.
6+
//
7+
8+
#import "PAGRequest.h"
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@interface PAGAppOpenRequest : PAGRequest
13+
14+
15+
/// If the ad data is not successfully loaded within the timeout period,
16+
/// a timeout error from the invoked completion handler will be non-nil.
17+
/// default is 3.5s
18+
@property (nonatomic, assign) NSTimeInterval timeout;
19+
20+
@end
21+
22+
NS_ASSUME_NONNULL_END
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//
2+
// PAGBannerAd.h
3+
// PangleAPI
4+
//
5+
// Created by bytedance on 2022/3/23.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
#import "PAGAdProtocol.h"
10+
#import "PAGAdClientBiddingProtocol.h"
11+
#import "PAGBannerAdDelegate.h"
12+
#import "PAGBannerRequest.h"
13+
14+
NS_ASSUME_NONNULL_BEGIN
15+
16+
@class PAGBannerAd;
17+
18+
/// Callback for loading ad results.
19+
/// @param bannerAd Ad instance after successfully loaded which will be non-nil on success.
20+
/// @param error Loading error which will be non-nil on fail.
21+
typedef void (^PAGBannerADLoadCompletionHandler)(PAGBannerAd * _Nullable bannerAd,
22+
NSError * _Nullable error);
23+
24+
@interface PAGBannerAd : NSObject<PAGAdProtocol,PAGAdClientBiddingProtocol>
25+
26+
/// Ad event delegate.
27+
@property (nonatomic, weak, nullable) id<PAGBannerAdDelegate> delegate;
28+
/// View of the banner ad.
29+
@property (nonatomic, strong, readonly) UIView *bannerView;
30+
/// View controller the banner ad will be presented on.
31+
@property (nonatomic, weak, readwrite) UIViewController *rootViewController;
32+
33+
+ (instancetype)new UNAVAILABLE_ATTRIBUTE;
34+
- (instancetype)init UNAVAILABLE_ATTRIBUTE;
35+
36+
37+
/// Load banner ad
38+
/// @param slotID Required. The unique identifier of banner ad.
39+
/// @param request Required. An instance of a banner ad request.
40+
/// @param completionHandler Handler which will be called when the request completes.
41+
+ (void)loadAdWithSlotID:(NSString *)slotID
42+
request:(PAGBannerRequest *)request
43+
completionHandler:(PAGBannerADLoadCompletionHandler)completionHandler;
44+
45+
@end
46+
47+
NS_ASSUME_NONNULL_END
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// PAGBannerADDelegate.h
3+
// PangleAPI
4+
//
5+
// Created by bytedance on 2022/3/23.
6+
//
7+
8+
#import "PAGAdDelegate.h"
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@class PAGBannerAd;
13+
14+
@protocol PAGBannerAdDelegate <PAGAdDelegate>
15+
16+
@end
17+
18+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)