-
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
e342082
commit 625e499
Showing
14 changed files
with
1,538 additions
and
0 deletions.
There are no files selected for viewing
440 changes: 440 additions & 0 deletions
440
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleSDK.h
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleSDKCreativeTracking.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,25 @@ | ||
// | ||
// VungleSDKCreativeTracking.h | ||
// Vungle iOS SDK | ||
// | ||
// Copyright (c) 2013-Present Vungle Inc. All rights reserved. | ||
// | ||
|
||
@protocol VungleSDKCreativeTracking | ||
|
||
@optional | ||
/** | ||
* If implemented, this will get called when the SDK has an ad ready to be displayed. | ||
* The parameters will indicate that an ad associated with the included creative ID is | ||
* ready to play for the specified placement reference ID. Both parameters should return | ||
* a value if an ad is ready to be played. | ||
* @param creativeID The creative ID of the ad unit that is ready to be played | ||
* @param placementID The ID of a placement which is ready to be played | ||
*/ | ||
- (void)vungleCreative:(nullable NSString *)creativeID readyForPlacement:(nullable NSString *)placementID; | ||
@end | ||
|
||
@interface VungleSDK () | ||
@property (nullable, weak) NSObject <VungleSDKCreativeTracking> *creativeTrackingDelegate; | ||
|
||
@end |
245 changes: 245 additions & 0 deletions
245
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleSDKHeaderBidding.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,245 @@ | ||
// | ||
// VungleSDKHeaderBidding.h | ||
// Vungle iOS SDK | ||
// | ||
// Copyright (c) 2013-Present Vungle Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "VungleSDK.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol VungleSDKHeaderBidding; | ||
@protocol VungleSDKHBDelegate; | ||
|
||
@interface VungleSDK () | ||
|
||
/** | ||
* Setting this to a non-nil value will enabled header bidding and reporting | ||
*/ | ||
@property (nonatomic, weak) NSObject<VungleSDKHeaderBidding> *headerBiddingDelegate; | ||
|
||
/** | ||
* Setting this to a non-nil value will enable header bidding SDK callbacks | ||
*/ | ||
@property (nonatomic, weak) NSObject<VungleSDKHBDelegate> *sdkHBDelegate; | ||
|
||
/** | ||
* This is a synchronous method to fetch a bid token for any placement. This method | ||
* will return nil if it is unable to find a bid token, or a cached placement. | ||
* | ||
* @param placement The ID of a that has already been loaded placement | ||
*/ | ||
- (NSString *)bidTokenForPlacement:(NSString *)placement __attribute__((deprecated("Use currentSuperToken to get all the participating bid Tokens."))); | ||
|
||
/** | ||
* Prepares a placement when you know that you will want | ||
* to show an ad experience tied to a specific placementID. | ||
* @param placementID the specific ID of the placement you would like to present at some point soon | ||
* @param adMarkup includes the adunit data of the placement you would like to present at some point soon | ||
* @param error the NSError object that used to hold error generated | ||
* @return NO if something goes immediately wrong with loading, YES otherwise | ||
*/ | ||
- (BOOL)loadPlacementWithID:(nonnull NSString *)placementID adMarkup:(nullable NSString *)adMarkup error:(NSError *__autoreleasing _Nullable *_Nullable)error; | ||
|
||
/** | ||
* (Overloaded method) | ||
* Prepares a placement when you know that you will want | ||
* to show an ad experience tied to a specific placementID. | ||
* @param placementID the specific ID of the placement you would like to present at some point soon | ||
* @param adMarkup includes the adunit data of the placement you would like to present at some point soon | ||
* @param size the VungleAdSize (enum) you would like to request (only for banner ad type at the moment) | ||
* @param error the NSError object that used to hold error generated | ||
* @return NO if something goes immediately wrong with loading, YES otherwise | ||
*/ | ||
- (BOOL)loadPlacementWithID:(nonnull NSString *)placementID adMarkup:(nullable NSString *)adMarkup withSize:(VungleAdSize)size error:(NSError *__autoreleasing _Nullable *_Nullable)error; | ||
|
||
/** | ||
* Pass in an UIView which acts as a container for the ad experience. This view container may be placed in random positions. | ||
* @note This method should only be called using placements that have the `flexfeed` or `mrec` or `banner` template type. For | ||
* the `mrec` template type, note that the UIView must have a width of 300 and a height of 250. If the view is provided without | ||
* these dimensions, an error message will be returned and the ad will not be shown. For the `banner` template type, note that | ||
* the UIView must have the same width and height as the banner size (320x50, 300x50, or 728x90) which you requested. If the | ||
* view is provided with a different banner size, an error message will be returned and the ad will not be shown. | ||
* @param publisherView container view in which an ad will be displayed | ||
* @param options A reference to an instance of NSDictionary with customized ad playback options | ||
* @param placementID The placement defined on the Vungle dashboard | ||
* @param adMarkup includes the adunit data of the placement | ||
* @param error An optional double reference to an NSError. In case this method returns `NO` it will be non-nil | ||
* @return YES/NO in case of success/error while presenting an AdUnit | ||
*/ | ||
- (BOOL)addAdViewToView:(UIView *)publisherView withOptions:(nullable NSDictionary *)options placementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup error:(NSError *__autoreleasing _Nullable *_Nullable)error; | ||
|
||
/** | ||
* Will play Ad Unit presenting it over the `controller` parameter | ||
* @note This method should only be called using placements with `fullscreen` or `flexview` template types | ||
* @param controller A subclass of UIViewController. Should correspond to the ViewControler at the top of the ViewController hierarchy | ||
* @param options A reference to an instance of NSDictionary with customized ad playback options | ||
* @param placementID The placement defined on the Vungle dashboard | ||
* @param adMarkup includes the adunit data of the placement | ||
* @param error An optional double reference to an NSError. In case this method returns `NO` it will be non-nil | ||
* @return YES/NO in case of success/error while presenting an AdUnit | ||
* @warning Should be called from the main-thread. | ||
*/ | ||
- (BOOL)playAd:(UIViewController *)controller options:(nullable NSDictionary *)options placementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup error:(NSError *__autoreleasing _Nullable *_Nullable)error; | ||
|
||
/** | ||
* Returns YES/NO when there is certainty that an ad will be able to play/can't play for a given placementID. | ||
* @param placementID the specific ID of the placement | ||
* @param adMarkup includes the adunit data of the placement | ||
*/ | ||
- (BOOL)isAdCachedForPlacementID:(nonnull NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* (Overloaded method) | ||
* Returns YES/NO when there is certainty that an ad will be able to play/can't play for a given placementID. | ||
* @param placementID the specific ID of the placement | ||
* @param size the VungleAdSize (enum) you would like to request (only for banner ad type at the moment) | ||
* @param adMarkup includes the adunit data of the placement | ||
*/ | ||
- (BOOL)isAdCachedForPlacementID:(nonnull NSString *)placementID adMarkup:(nullable NSString *)adMarkup withSize:(VungleAdSize)size; | ||
|
||
/** | ||
* This method will dismiss the currently playing Flex View, Flex Feed, Banner or MREC advertisement with the placementId specified. | ||
* If you have added an advertisement with `addAdViewToView:` or you are playing a placement that has been configured as a | ||
* Flex View, Flex Feed, Banner or MREC placement, then this method will remove the advertisement from the screen and perform any | ||
* necessary clean up steps. | ||
* This method will call the existing delegate callbacks as part of the lifecycle. | ||
* @param placementId the specific ID of the placement | ||
* @param adMarkup includes the adunit data of the placement | ||
*/ | ||
- (void)finishDisplayingAd:(nonnull NSString *)placementId adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* This is a synchronous method to fetch super token. This method | ||
* will return nil if it is unable to find an available token. | ||
* | ||
*/ | ||
- (NSString *)currentSuperToken; | ||
|
||
/** | ||
* This is a synchronous method to fetch super token. This method | ||
* will return nil if it is unable to find an available token. | ||
* @param size Size limit of the supertoken needs to be returned | ||
*/ | ||
- (NSString *)currentSuperTokenForSize:(NSInteger)size; | ||
|
||
@end | ||
|
||
@protocol VungleSDKHeaderBidding | ||
|
||
@optional | ||
/** | ||
* If implemented, this will be called as soon as the SDK receives a bidToken for a particular | ||
* placement. Note that the placement is NOT available to playback until preparation. | ||
* | ||
* @param placement The ID of a placement which is ready to be played | ||
* @param bidToken An encrypted bid token used to identify the placement through the auction | ||
*/ | ||
- (void)placementWillBeginCaching:(NSString *)placement | ||
withBidToken:(NSString *)bidToken __attribute__((deprecated("This delegate method will no longer be used in feature releases."))); | ||
|
||
/** | ||
* If implemented, this will be called when the SDK has a placement fully prepared and cached | ||
* to disk with a corresponding bid token. | ||
* | ||
* @param placement The ID of a placement which is ready to be played | ||
* @param bidToken An encrypted bid token used to identify the placement through the auction | ||
*/ | ||
- (void)placementPrepared:(NSString *)placement | ||
withBidToken:(NSString *)bidToken __attribute__((deprecated("This delegate method will no longer be used in feature releases."))); | ||
|
||
@end | ||
|
||
@protocol VungleSDKHBDelegate <VungleSDKDelegate> | ||
|
||
@optional | ||
/** | ||
* If implemented, this will get called when the SDK has an ad ready to be displayed. Also it will | ||
* get called with an argument `NO` for `isAdPlayable` when for some reason, there is | ||
* no ad available, for instance there is a corrupt ad or the OS wiped the cache. | ||
* Please note that receiving a `NO` here does not mean that you can't play an Ad: if you haven't | ||
* opted-out of our Exchange, you might be able to get a streaming ad if you call `play`. | ||
* @param isAdPlayable A boolean indicating if an ad is currently in a playable state | ||
* @param placementID The ID of a placement which is ready to be played | ||
* @param adMarkup The ad markup of an adUnit which is ready to be played. | ||
* @param error The error that was encountered. This is only sent when the placementID is nil. | ||
*/ | ||
- (void)vungleAdPlayabilityUpdate:(BOOL)isAdPlayable placementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup error:(nullable NSError *)error; | ||
|
||
/** | ||
* If implemented, this will get called when the SDK is about to show an ad. This point | ||
* might be a good time to pause your game, and turn off any sound you might be playing. | ||
* @param placementID The placement which is about to be shown. | ||
* @param adMarkup The ad markup of an adUnit which is about to be shown. | ||
*/ | ||
- (void)vungleWillShowAdForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* If implemented, this will get called when the SDK has presented the view controller or the | ||
* view that houses the ad. | ||
* @param placementID The placement which is about to be shown. | ||
* @param adMarkup The ad markup of an adUnit which is about to be shown.. | ||
*/ | ||
- (void)vungleDidShowAdForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* If implemented, this will be called when the ad is first rendered for the specified placement. | ||
* @NOTE: Please use this callback to track views. | ||
* @param placementID The placement ID of the advertisement shown | ||
* @param adMarkup The ad markup of the advertisement shown. | ||
*/ | ||
- (void)vungleAdViewedForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* If implemented, this method gets called when a Vungle Ad Unit is about to be completely dismissed. | ||
* At this point, it's recommended to resume your Game or App. | ||
* @param placementID The placement ID of the advertisement about to be closed. | ||
* @param adMarkup The ad markup of the advertisement about to be closed. | ||
*/ | ||
- (void)vungleWillCloseAdForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* If implemented, this method gets called when a Vungle Ad Unit has been completely dismissed. | ||
* At this point, you can load another ad for non-auto-cached placement if necessary. | ||
* @param placementID The placement ID of the advertisement that has been closed. | ||
* @param adMarkup The ad markup of the advertisement that has been closed. | ||
*/ | ||
- (void)vungleDidCloseAdForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* If implemented, this method gets called when user clicks the Vungle Ad. | ||
* At this point, it's recommended to track the click event. | ||
* @param placementID The placement ID of the advertisement shown. | ||
* @param adMarkup The ad markup of the advertisement shown | ||
*/ | ||
- (void)vungleTrackClickForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* If implemented, this method gets called when user taps the Vungle Ad | ||
* which will cause them to leave the current application(e.g. the ad action | ||
* opens the iTunes store, Mobile Safari, etc). | ||
* @param placementID The placement ID of the advertisement about to leave the current application. | ||
* @param adMarkup The ad markup of the advertisement about to leave the current application. | ||
*/ | ||
- (void)vungleWillLeaveApplicationForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* This method is called when the user should be rewarded for watching a Rewarded Video Ad. | ||
* At this point, it's recommended to reward the user. | ||
* @param placementID The placement ID of the advertisement shown. | ||
* @param adMarkup The ad markup of the advertisement shown. | ||
*/ | ||
- (void)vungleRewardUserForPlacementID:(nullable NSString *)placementID adMarkup:(nullable NSString *)adMarkup; | ||
|
||
/** | ||
* This method is called when the publisher changes the placement state from HB to NON-HB or the other way. | ||
* At this point, it's recommended to remove all the delegate object references related to placement. | ||
* @param placementID The unique ID referred to the placement of the advertisement shown | ||
*/ | ||
- (void)invalidateObjectsForPlacementID:(nullable NSString *)placementID; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
42 changes: 42 additions & 0 deletions
42
plugins/2018.3326/iphone-sim/VungleSDK.framework/Headers/VungleSDKNativeAds.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,42 @@ | ||
// | ||
// VungleSDKNativeAdsD.h | ||
// Vungle iOS SDK | ||
// | ||
// Created by Clarke Bishop on 6/4/18. | ||
// Copyright © 2018 Vungle Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "VungleSDK.h" | ||
|
||
@protocol VungleSDKNativeAds | ||
|
||
/** | ||
* If implemented, this will get called when the SDK has a placement that has triggered | ||
* a URL launch that will take the user out of the application | ||
* @param placement The ID of a placement which triggered the URL launch | ||
*/ | ||
- (void)nativeAdsPlacementWillTriggerURLLaunch:(NSString *)placement; | ||
|
||
/** | ||
* If implemented, this will get called when the SDK has successfully loaded an ad for | ||
* the specified placement | ||
* @param placement The ID of the placement that successfully loaded an ad | ||
*/ | ||
- (void)nativeAdsPlacementDidLoadAd:(NSString *)placement; | ||
|
||
/** | ||
* If implemented, this will get called when the SDK fails to load an ad for the | ||
* specified placement | ||
* @param placement The ID of the placement that failed to load an ad | ||
* @param error The NSError object containing details of the failed attempt | ||
*/ | ||
- (void)nativeAdsPlacement:(NSString *)placement didFailToLoadAdWithError:(NSError *)error; | ||
|
||
@end | ||
|
||
@interface VungleSDK () | ||
|
||
@property (nonatomic, weak) id <VungleSDKNativeAds> nativeAdsDelegate; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
plugins/2018.3326/iphone-sim/VungleSDK.framework/Modules/module.modulemap
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,17 @@ | ||
framework module VungleSDK { | ||
umbrella header "VungleSDK.h" | ||
|
||
module VungleSDKCreativeTracking { | ||
header "VungleSDKCreativeTracking.h" | ||
} | ||
|
||
module VungleSDKNativeAds { | ||
header "VungleSDKNativeAds.h" | ||
} | ||
|
||
module VungleSDKHeaderBidding { | ||
header "VungleSDKHeaderBidding.h" | ||
} | ||
|
||
module * { export * } | ||
} |
Binary file modified
BIN
+16.8 MB
(320%)
plugins/2018.3326/iphone-sim/VungleSDK.framework/VungleSDK
100755 → 100644
Binary file not shown.
Binary file not shown.
Oops, something went wrong.