-
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.
Merge pull request #15 from AGulev/unity-sdk-3-5-0
Unity sdk 3 5 0
- Loading branch information
Showing
20 changed files
with
684 additions
and
330 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
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.
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
27 changes: 27 additions & 0 deletions
27
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsInitializationDelegate.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,27 @@ | ||
#import "UnityAdsInitializationError.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* The `UnityAdsInitializationDelegate` defines the methods which will notify UnityAds | ||
* has either successfully initialized or failed with error category and error message | ||
*/ | ||
|
||
@protocol UnityAdsInitializationDelegate <NSObject> | ||
/** | ||
* Called when `UnityAds` is successfully initialized | ||
*/ | ||
- (void)initializationComplete; | ||
/** | ||
* Called when `UnityAds` is failed in initialization. | ||
* @param error | ||
* if `kUnityInitializationErrorInternalError`, initialization failed due to environment or internal services | ||
* if `kUnityInitializationErrorInvalidArgument`, initialization failed due to invalid argument(e.g. game ID) | ||
* if `kUnityInitializationErrorAdBlockerDetected`, initialization failed due to url being blocked | ||
* @param message A human readable error message | ||
*/ | ||
- (void)initializationFailed:(UnityAdsInitializationError)error withMessage:(NSString *)message; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
21 changes: 21 additions & 0 deletions
21
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsInitializationError.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,21 @@ | ||
/** | ||
* An enumeration for the error category of initialization errors | ||
*/ | ||
typedef NS_ENUM(NSInteger, UnityAdsInitializationError) | ||
{ | ||
/** | ||
* Error related to environment or internal services. | ||
*/ | ||
kUnityInitializationErrorInternalError, | ||
|
||
/** | ||
* Error related to invalid arguments | ||
*/ | ||
kUnityInitializationErrorInvalidArgument, | ||
|
||
/** | ||
* Error related to url being blocked | ||
*/ | ||
kUnityInitializationErrorAdBlockerDetected | ||
|
||
}; |
21 changes: 21 additions & 0 deletions
21
defunityads/lib/ios/UnityAds.framework/Headers/UnityAdsLoadDelegate.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,21 @@ | ||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* The `UnityAdsLoadDelegate` protocol defines the required methods for receiving messages from UnityAds.load() method. | ||
*/ | ||
@protocol UnityAdsLoadDelegate <NSObject> | ||
/** | ||
* Callback triggered when a load request has successfully filled the specified placementId with an ad that is ready to show. | ||
* | ||
* @param placementId The ID of the placement as defined in Unity Ads admin tools. | ||
*/ | ||
- (void)unityAdsAdLoaded:(NSString *)placementId; | ||
/** | ||
* Callback triggered when load request has failed to load an ad for a requested placement. | ||
* | ||
* @param placementId The ID of the placement as defined in Unity Ads admin tools. | ||
*/ | ||
- (void)unityAdsAdFailedToLoad:(NSString *)placementId; | ||
@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
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.
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
Oops, something went wrong.