generated from solar2d/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
169dfe8
commit 9bf9b45
Showing
239 changed files
with
12,153 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
plugins/2018.3326/iphone-sim/MTGSDK.framework/Headers/MTGAdChoicesView.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// MTGAdChoicesView.h | ||
// MTGSDK | ||
// | ||
// Copyright © 2018 Mintegral. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class MTGCampaign; | ||
|
||
/** | ||
MTGAdChoicesView offers a simple way to display a AdChoice icon. | ||
Since the image icon's size changes, you need to update this view's size too. Additional size info can be pulled from the `MTGCampaign` instance. | ||
*/ | ||
@interface MTGAdChoicesView : UIView | ||
|
||
/** | ||
Initialize this view with a given frame. | ||
@param frame For best user experience, keep the size of this view the same as AdChoiceIcon's, which can be pulled from MTGCampaign's -adChoiceIconSize | ||
*/ | ||
- (instancetype)initWithFrame:(CGRect)frame; | ||
|
||
/** | ||
The campaign obj that provides AdChoices info, such as the image url, and click url. | ||
*/ | ||
@property (nonatomic, weak, readwrite, nullable) MTGCampaign *campaign; | ||
|
||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
32 changes: 32 additions & 0 deletions
32
plugins/2018.3326/iphone-sim/MTGSDK.framework/Headers/MTGAdSize.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// MTGAdSize.h | ||
// MTGSDK | ||
// | ||
// Copyright © 2019 Mintegral. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
typedef NS_ENUM(NSInteger,MTGBannerSizeType) { | ||
/*Represents the fixed banner ad size - 320pt by 50pt.*/ | ||
MTGStandardBannerType320x50, | ||
|
||
/*Represents the fixed banner ad size - 320pt by 90pt.*/ | ||
MTGLargeBannerType320x90, | ||
|
||
/*Represents the fixed banner ad size - 300pt by 250pt.*/ | ||
MTGMediumRectangularBanner300x250, | ||
|
||
/*if device is iphone,Represents the fixed banner ad size - 320pt by 50pt; | ||
if device is ipad, Represents the fixed banner ad size - 728pt by 90pt*/ | ||
MTGSmartBannerType | ||
}; | ||
|
||
@interface MTGAdSize : NSObject | ||
|
||
+(CGSize)getSizeBySizeType:(MTGBannerSizeType)sizeType; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
176 changes: 176 additions & 0 deletions
176
plugins/2018.3326/iphone-sim/MTGSDK.framework/Headers/MTGBidNativeAdManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
// | ||
// MTGBidNativeAdManager.h | ||
// MTGSDK | ||
// | ||
// Copyright © 2019 Mintegral. All rights reserved. | ||
// | ||
|
||
#import "MTGNativeAd.h" | ||
|
||
|
||
|
||
|
||
#pragma mark - MTGBidNativeAdManager | ||
|
||
@interface MTGBidNativeAdManager : NSObject | ||
|
||
/*! | ||
@property | ||
@abstract The delegate | ||
@discussion All delegate method will be called in main thread. | ||
*/ | ||
@property (nonatomic, weak, nullable) id <MTGBidNativeAdManagerDelegate> delegate; | ||
|
||
/*! | ||
@property | ||
@discussion Show the loading view when to click on ads. | ||
The default is yes | ||
*/ | ||
@property (nonatomic, assign) BOOL showLoadingView; | ||
|
||
/*! | ||
@property | ||
@discussion ad current placementId . | ||
*/ | ||
|
||
@property (nonatomic, readonly) NSString *_Nullable placementId; | ||
|
||
/*! | ||
@property | ||
@discussion ad current UnitId . | ||
*/ | ||
@property (nonatomic, readonly) NSString * _Nonnull currentUnitId; | ||
|
||
/** | ||
* get the id of this request ad,call after nativeAdsLoaded. | ||
*/ | ||
@property (nonatomic, readonly) NSString *_Nullable requestId; | ||
|
||
/*! | ||
@property | ||
@discussion The current ViewController of display ad. | ||
the "ViewController" parameters are assigned as calling the init or Registerview method | ||
*/ | ||
@property (nonatomic, weak) UIViewController * _Nullable viewController; | ||
|
||
|
||
/*! | ||
Initialize the native ads manager which is for loading ads. (MTGCampaign) | ||
@param unitId The id of the ad unit. You can create your unit id from our Portal. | ||
@param viewController The UIViewController that will be used to present SKStoreProductViewController | ||
(iTunes Store product information) or the in-app browser. If not set, it will be the root viewController of your current UIWindow. But it may failed to present our view controller if your rootViewController is presenting other view controller. So set this property is necessary. | ||
*/ | ||
- (nonnull instancetype)initWithPlacementId:(nullable NSString *)placementId | ||
unitID:(nonnull NSString *)unitId | ||
presentingViewController:(nullable UIViewController *)viewController; | ||
|
||
|
||
/*! | ||
Initialize the native ads manager which is for loading ads with more options. | ||
@param unitId The id of the ad unit. You can create your unit id from our Portal. | ||
@param autoCacheImage If you pass YES, SDK will download the image resource automatically when you get the campaign. The default is NO. | ||
@param viewController The UIViewController that will be used to present SKStoreProductViewController | ||
(iTunes Store product information) or the in-app browser. If not set, it will be the root viewController of your current UIWindow. But it may failed to present our view controller if your rootViewController is presenting other view controller. So set this property is necessary. | ||
*/ | ||
- (nonnull instancetype)initWithPlacementId:(nullable NSString *)placementId | ||
unitID:(nonnull NSString *)unitId | ||
autoCacheImage:(BOOL)autoCacheImage | ||
presentingViewController:(nullable UIViewController *)viewController; | ||
|
||
|
||
/*! | ||
This method is used to request ads with the token you got previously | ||
@param bidToken - the token from bid request within MTGBidFramework. | ||
*/ | ||
- (void)loadWithBidToken:(nonnull NSString *)bidToken; | ||
|
||
|
||
/*! | ||
This is a method to associate a MTGCampaign with the UIView you will use to display the native ads. | ||
@param view The UIView you created to render all the native ads data elements. | ||
@param campaign The campaign you associate with the view. | ||
@discussion The whole area of the UIView will be clickable. | ||
*/ | ||
- (void)registerViewForInteraction:(nonnull UIView *)view | ||
withCampaign:(nonnull MTGCampaign *)campaign; | ||
|
||
/*! | ||
This is a method to disconnect a MTGCampaign with the UIView you used to display the native ads. | ||
@param view The UIView you created to render all the native ads data elements. | ||
*/ | ||
- (void)unregisterView:(nonnull UIView *)view; | ||
|
||
/*! | ||
This is a method to associate a MTGCampaign with the UIView you will use to display the native ads and set clickable areas. | ||
@param view The UIView you created to render all the native ads data elements. | ||
@param clickableViews An array of UIView you created to render the native ads data element, e.g. CallToAction button, Icon image, which you want to specify as clickable. | ||
@param campaign The campaign you associate with the view. | ||
*/ | ||
- (void)registerViewForInteraction:(nonnull UIView *)view | ||
withClickableViews:(nonnull NSArray *)clickableViews | ||
withCampaign:(nonnull MTGCampaign *)campaign; | ||
|
||
/*! | ||
This is a method to disconnect a MTGCampaign with the UIView you used to display the native ads. | ||
@param view The UIView you created to render all the native ads data elements. | ||
@param clickableViews An array of UIView you created to render the native ads data element, e.g. CallToAction button, Icon image, which you want to specify as clickable. | ||
*/ | ||
- (void)unregisterView:(nonnull UIView *)view clickableViews:(nonnull NSArray *)clickableViews; | ||
|
||
/*! | ||
This is a method to clean the cache nativeAd. | ||
*/ | ||
- (void)cleanAdsCache; | ||
|
||
/*! | ||
Set the video display area size. | ||
@param size The display area size. | ||
*/ | ||
-(void)setVideoViewSize:(CGSize)size; | ||
|
||
/*! | ||
Set the video display area size. | ||
@param width The display area width. | ||
@param height The display area height. | ||
*/ | ||
-(void)setVideoViewSizeWithWidth:(CGFloat)width height:(CGFloat)height; | ||
|
||
/// Pass extra info into sdk. | ||
/// @param extraInfo info you want to pass | ||
/// @param key corresponding key for extraInfo | ||
- (void)setExtraInfo:(nullable id)extraInfo forKey:(nonnull NSString *)key; | ||
|
||
@end | ||
|
||
|
||
|
29 changes: 29 additions & 0 deletions
29
plugins/2018.3326/iphone-sim/MTGSDK.framework/Headers/MTGBool.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// MTGBool.h | ||
// MTGSDK | ||
// | ||
// Copyright © 2019 Mintegral. All rights reserved. | ||
// | ||
|
||
/** | ||
Tri-state boolean. | ||
*/ | ||
typedef NS_ENUM(NSInteger, MTGBool) { | ||
/* No */ | ||
MTGBoolNo = -1, | ||
|
||
/* Unknown */ | ||
MTGBoolUnknown = 0, | ||
|
||
/* Yes */ | ||
MTGBoolYes = 1, | ||
}; | ||
|
||
|
||
typedef NS_ENUM(NSUInteger, MTGInterfaceOrientation) { | ||
MTGInterfaceOrientationAll = 0, // to use current orientation of the device. | ||
MTGInterfaceOrientationPortrait = 1, // to force to use portrait mode. | ||
MTGInterfaceOrientationLandscape = 2, // to force to use landscape mode. | ||
}; | ||
|
||
|
Oops, something went wrong.