SHARE
TWEET

Untitled

a guest Jul 17th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Enhance.h>
  2. #import <UIKit/UIKit.h>
  3. #import <CoreFoundation/CoreFoundation.h>
  4. #import <FglEnhance.h>
  5.  
  6. using namespace enhance;
  7.  
  8. @interface EnhanceDelegateObject: NSObject
  9. {
  10. }
  11. @end
  12.  
  13. @implementation EnhanceDelegateObject
  14.  
  15. @end
  16.  
  17. namespace enhance
  18. {
  19.     static FglEnhance* _enhance = nil;
  20.  
  21.     void init()
  22.     {
  23.         _enhance = [FglEnhance sharedInstance];
  24.     }
  25.  
  26.     bool isInterstitialReady(const char *placement)
  27.     {
  28.         NSString *placementStr = PLACEMENT_DEFAULT;
  29.         if(placement != NULL) placementStr = [NSString stringWithUTF8String: placement];
  30.  
  31.         return [_enhance isInterstitialReady: placementStr];
  32.     }
  33.  
  34.     void showInterstitialAd(const char *placement)
  35.     {
  36.         NSString *placementStr = PLACEMENT_DEFAULT;
  37.         if(placement != NULL) placementStr = [NSString stringWithUTF8String: placement];
  38.  
  39.         [_enhance showInterstitial: placementStr];
  40.     }
  41.  
  42.     bool isRewardedAdReady(const char *placement)
  43.     {
  44.         NSString *placementStr = REWARDED_PLACEMENT_NEUTRAL;
  45.         if(placement != NULL) placementStr = [NSString stringWithUTF8String: placement];
  46.  
  47.         return [_enhance isRewardedAdReady: placementStr];
  48.     }
  49.  
  50.     void showRewardedAd(const char *placement)
  51.     {
  52.         NSString *placementStr = REWARDED_PLACEMENT_NEUTRAL;
  53.         if(placement != NULL) placementStr = [NSString stringWithUTF8String: placement];
  54.  
  55.         //[[FglEnhance sharedInstance] showRewardedAd: self placement: placementStr];
  56.     }
  57. }
RAW Paste Data
Top