-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
14 changed files
with
412 additions
and
183 deletions.
There are no files selected for viewing
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
defunityads/lib/ios/UnityAds.framework/Headers/UADSBaseOptions.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,13 @@ | ||
|
||
@protocol UADSDictionaryConvertible <NSObject> | ||
-(NSDictionary *)dictionary; | ||
@end | ||
|
||
@interface UADSBaseOptions : NSObject<UADSDictionaryConvertible> | ||
|
||
@property (nonatomic, strong, readonly) NSDictionary* dictionary; | ||
@property (nonatomic, readwrite) NSString* objectId; | ||
|
||
- (instancetype)init; | ||
|
||
@end |
7 changes: 7 additions & 0 deletions
7
defunityads/lib/ios/UnityAds.framework/Headers/UADSLoadOptions.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,7 @@ | ||
#import "UADSBaseOptions.h" | ||
|
||
@interface UADSLoadOptions : UADSBaseOptions | ||
|
||
@property (nonatomic, readwrite) NSString* adMarkup; | ||
|
||
@end |
5 changes: 5 additions & 0 deletions
5
defunityads/lib/ios/UnityAds.framework/Headers/UADSShowOptions.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,5 @@ | ||
#import "UADSBaseOptions.h" | ||
|
||
@interface UADSShowOptions : UADSBaseOptions | ||
|
||
@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
30 changes: 30 additions & 0 deletions
30
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsLoadError.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,30 @@ | ||
/** | ||
* An enumeration for the error category of load errors | ||
*/ | ||
typedef NS_ENUM(NSInteger, UnityAdsLoadError) { | ||
/** | ||
* Error related to SDK not initialized | ||
*/ | ||
kUnityAdsLoadErrorInitializeFailed, | ||
|
||
/** | ||
* Error related to environment or internal services | ||
*/ | ||
kUnityAdsLoadErrorInternal, | ||
|
||
/** | ||
* Error related to invalid arguments | ||
*/ | ||
kUnityAdsLoadErrorInvalidArgument, | ||
|
||
/** | ||
* Error related to there being no ads available | ||
*/ | ||
kUnityAdsLoadErrorNoFill, | ||
|
||
/** | ||
* Error related to there being no ads available | ||
*/ | ||
kUnityAdsLoadErrorTimeout, | ||
}; | ||
|
13 changes: 13 additions & 0 deletions
13
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsShowCompletionState.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,13 @@ | ||
/** | ||
* An enumeration for the show completion state of an ad. | ||
*/ | ||
typedef NS_ENUM(NSInteger, UnityAdsShowCompletionState) { | ||
/** | ||
* A state that indicates that the user skipped the ad. | ||
*/ | ||
kUnityShowCompletionStateSkipped, | ||
/** | ||
* A state that indicates that the ad was played entirely. | ||
*/ | ||
kUnityShowCompletionStateCompleted | ||
}; |
45 changes: 45 additions & 0 deletions
45
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsShowDelegate.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,45 @@ | ||
#import "UnityAdsShowError.h" | ||
#import "UnityAdsShowCompletionState.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* The `UnityAdsShowDelegate` defines the methods which will notify UnityAds show call | ||
* is either successfully completed with its completion state or failed with error category and error message | ||
*/ | ||
|
||
@protocol UnityAdsShowDelegate <NSObject> | ||
/** | ||
* Called when UnityAds completes show operation successfully for a placement with completion state. | ||
* @param placementId The ID of the placement as defined in Unity Ads admin tools. | ||
* @param state An enum value indicating the finish state of the ad. Possible values are `Completed`, `Skipped`. | ||
*/ | ||
- (void)unityAdsShowComplete:(NSString *)placementId withFinishState:(UnityAdsShowCompletionState)state; | ||
/** | ||
* Called when UnityAds has failed to show a specific placement with an error message and error category. | ||
* @param placementId The ID of the placement as defined in Unity Ads admin tools. | ||
* @param error | ||
* if `kUnityShowErrorNotInitialized`, show failed due to SDK not initialized. | ||
* if `kUnityShowErrorNotReady`, show failed due to placement not being ready. | ||
* if `kUnityShowErrorVideoPlayerError`, show failed due to video player. | ||
* if `kUnityShowErrorInvalidArgument`, show failed due to invalid arguments. | ||
* if `kUnityShowErrorNoConnection`, show failed due to internet connection. | ||
* if `kUnityShowErrorAlreadyShowing`, show failed due to ad is already being showen. | ||
* if `kUnityShowErrorInternalError`, show failed due to environment or internal services. | ||
* @param message A human readable error message | ||
*/ | ||
- (void)unityAdsShowFailed:(NSString *)placementId withError:(UnityAdsShowError)error withMessage:(NSString *)message; | ||
/** | ||
* Called when UnityAds has started to show ad with a specific placement. | ||
* @param placementId The ID of the placement as defined in Unity Ads admin tools. | ||
*/ | ||
- (void)unityAdsShowStart:(NSString *)placementId; | ||
/** | ||
* Called when UnityAds has received a click while showing ad with a specific placement. | ||
* @param placementId The ID of the placement as defined in Unity Ads admin tools. | ||
*/ | ||
- (void)unityAdsShowClick:(NSString *)placementId; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
42 changes: 42 additions & 0 deletions
42
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsShowError.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 @@ | ||
/** | ||
* An enumeration for the error category of show errors | ||
*/ | ||
typedef NS_ENUM(NSInteger, UnityAdsShowError) | ||
{ | ||
/** | ||
* Error related to SDK not initialized | ||
*/ | ||
kUnityShowErrorNotInitialized, | ||
|
||
/** | ||
* Error related to placement not being ready | ||
*/ | ||
kUnityShowErrorNotReady, | ||
|
||
/** | ||
* Error related to video player | ||
*/ | ||
kUnityShowErrorVideoPlayerError, | ||
|
||
/** | ||
* Error related to invalid arguments | ||
*/ | ||
kUnityShowErrorInvalidArgument, | ||
|
||
/** | ||
* Error related to internet connection | ||
*/ | ||
kUnityShowErrorNoConnection, | ||
|
||
/** | ||
* Error related to ad is already being shown | ||
*/ | ||
kUnityShowErrorAlreadyShowing, | ||
|
||
/** | ||
* Error related to environment or internal services | ||
*/ | ||
kUnityShowErrorInternalError | ||
|
||
}; | ||
|
Binary file not shown.
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
Binary file not shown.
Oops, something went wrong.