-
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.
Updating Appodeal Adapter iOS to 3.0.2
- Loading branch information
1 parent
625e499
commit cd92fee
Showing
18 changed files
with
446 additions
and
166 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleMediaView.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,37 @@ | ||
// | ||
// VungleMediaView.h | ||
// Vungle iOS SDK | ||
// | ||
// Copyright © 2021 Vungle Inc. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* The VungleMediaView loads media content from a given VNGNativeAd. | ||
* This view takes the place of manually loading a cover image. | ||
*/ | ||
@interface VungleMediaView : UIView | ||
|
||
/** | ||
* Method that load an image from a local path. | ||
* @param path A local path of the image. | ||
*/ | ||
- (BOOL)loadImageFromLocalPath:(NSString *)path; | ||
|
||
/** | ||
* Method that load an image from a remote URL. | ||
* @param urlPath A remote path of the image. | ||
*/ | ||
- (BOOL)loadImageFromRemoteURL:(NSString *)urlPath; | ||
|
||
/** | ||
* Method that cleans up the currently displayed image. | ||
*/ | ||
- (void)cleanupImage; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
155 changes: 155 additions & 0 deletions
155
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleNativeAd.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,155 @@ | ||
// | ||
// VungleNativeAd.h | ||
// Vungle iOS SDK | ||
// | ||
// Copyright (c) 2013-Present Vungle Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol VungleNativeAdDelegate; | ||
@class VungleMediaView; | ||
|
||
typedef NS_ENUM (NSInteger, NativeAdOptionsPosition) { | ||
NativeAdOptionsPositionTopLeft = 1, | ||
NativeAdOptionsPositionTopRight, | ||
NativeAdOptionsPositionBottomLeft, | ||
NativeAdOptionsPositionBottomRight, | ||
}; | ||
|
||
@interface VungleNativeAd : NSObject | ||
|
||
/** | ||
* The delegate to receive Native Ad callbacks (VungleNativeAdDelegate). | ||
*/ | ||
@property (nonatomic, weak, nullable) id<VungleNativeAdDelegate> delegate; | ||
|
||
/** | ||
* The application name that the ad advertises. | ||
*/ | ||
@property (nonatomic, copy, readonly) NSString *title; | ||
|
||
/** | ||
* The description of the application that the ad advertises. | ||
*/ | ||
@property (nonatomic, copy, readonly) NSString *bodyText; | ||
|
||
/** | ||
* The call to action phrase of the ad. | ||
*/ | ||
@property (nonatomic, copy, readonly) NSString *callToAction; | ||
|
||
/** | ||
* The rating for the application that the ad advertises. | ||
*/ | ||
@property (nonatomic, assign, readonly) double adStarRating; | ||
|
||
/** | ||
* The sponsored text, normally "sponsored by". | ||
*/ | ||
@property (nonatomic, copy, readonly) NSString *sponsoredText; | ||
|
||
/** | ||
* The app icon image of the ad. | ||
*/ | ||
@property (nonatomic, strong, readonly, nullable) UIImage *iconImage; | ||
|
||
/** | ||
* The position for the ad choices icon. Default is TOP_RIGHT. | ||
*/ | ||
@property (nonatomic, assign) NativeAdOptionsPosition adOptionsPosition; | ||
|
||
/** | ||
* Initialize a VungleNativeAd with the specified placement id. | ||
* @param placementID the ID of the placement used to present the native ad | ||
*/ | ||
- (instancetype)initWithPlacementID:(nonnull NSString *)placementID; | ||
|
||
/** | ||
* Prepare a native ad for the specified placement. | ||
*/ | ||
- (void)loadAd; | ||
|
||
/** | ||
* Prepare a native ad for the specified placement. | ||
* @param adMarkup includes the adunit data of the placement | ||
*/ | ||
- (void)loadAdWithAdMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* Pass UIViews and UIViewController to prepare and display a Native ad. | ||
* @param view a container view in which a native ad will be displayed. This view will be clickable. | ||
* @param mediaView a VungleMediaView to display the ad's image or video | ||
* @param iconImageView a UIImageView to display the app icon | ||
* @param viewController a UIViewController to present SKStoreProductViewController | ||
*/ | ||
- (void)registerViewForInteraction:(nonnull UIView *)view | ||
mediaView:(nonnull VungleMediaView *)mediaView | ||
iconImageView:(nullable UIImageView *)iconImageView | ||
viewController:(nullable UIViewController *)viewController; | ||
|
||
/** | ||
* Pass UIViews and UIViewController to prepare and display a Native ad. | ||
* Also, specify clickable area. | ||
* @param view a container view in which a native ad will be displayed | ||
* @param mediaView a VungleMediaView to display the ad's image or video | ||
* @param iconImageView a UIImageView to display the app icon | ||
* @param viewController a UIViewController to present SKStoreProductViewController | ||
* @param clickableViews an array of UIViews that you would like to set clickable. | ||
* If nil or empty, the view will be clickable. | ||
*/ | ||
- (void)registerViewForInteraction:(nonnull UIView *)view | ||
mediaView:(nonnull VungleMediaView *)mediaView | ||
iconImageView:(nullable UIImageView *)iconImageView | ||
viewController:(nullable UIViewController *)viewController | ||
clickableViews:(nullable NSArray<UIView *> *)clickableViews; | ||
|
||
/** | ||
* Dismiss the currently displaying Native ad. | ||
*/ | ||
- (void)unregisterView; | ||
|
||
@end | ||
|
||
@protocol VungleNativeAdDelegate <NSObject> | ||
@optional | ||
|
||
/** | ||
* If implemented, this method will be called when the SDK loads a native ad successfully. | ||
* @param nativeAd The VungleNativeAd object sending the message. | ||
*/ | ||
- (void)nativeAdDidLoad:(VungleNativeAd *)nativeAd; | ||
|
||
/** | ||
* If implemented, this method will be called when the SDK fails to load a native ad. | ||
* @param nativeAd The VungleNativeAd object sending the message. | ||
* @param error An NSError object containing details of the error. | ||
*/ | ||
- (void)nativeAd:(VungleNativeAd *)nativeAd didFailWithError:(NSError *)error; | ||
|
||
/** | ||
* If implemented, this method will be called when the SDK fails to present a native ad. | ||
* @param nativeAd The VungleNativeAd object sending the message. | ||
* @param error An NSError object containing details of the error. | ||
*/ | ||
- (void)nativeAd:(VungleNativeAd *)nativeAd didFailToPlayWithError:(NSError *)error; | ||
|
||
/** | ||
* If implemented, this method will be called when a native ad is displayed successfully. | ||
* @note Please use this callback to track an impression. | ||
* @param nativeAd The VungleNativeAd object sending the message. | ||
*/ | ||
- (void)nativeAdDidTrackImpression:(VungleNativeAd *)nativeAd; | ||
|
||
/** | ||
* If implemented, this method will be called when a user clicks the native ad. | ||
* @param nativeAd The VungleNativeAd object sending the message. | ||
*/ | ||
- (void)nativeAdDidClick:(VungleNativeAd *)nativeAd; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
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
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
42 changes: 0 additions & 42 deletions
42
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleSDKNativeAds.h
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.