Files
phonegap-plugins/iPhone/AdPlugin/SAiOSAdPlugin.h
RandyMcMillan 3553e30fc1 Cordova 1.5 Support for iOS iAd plugin
Cordova 1.5 Support for iOS iAd plugin
Tested on Lion and Mountain Lion
2012-03-05 13:23:59 -05:00

49 lines
1.2 KiB
Objective-C

//
// SAiOSAdPlugin.h
// ADPlugin for PhoneGap/Cordova
//
// Created by shazron on 10-07-12.
// Copyright 2010 Shazron Abdullah. All rights reserved.
// Cordova v1.5.0 Support added 2012 @RandyMcMillan
//
#import <Foundation/Foundation.h>
#import <iAd/iAd.h>
#import "SAiOSAdPlugin.h"
#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#endif
//#else
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVPlugin.h>
#endif
#ifdef PHONEGAP_FRAMEWORK
@interface SAiOSAdPlugin : PGPlugin <ADBannerViewDelegate> {
#endif
#ifdef CORDOVA_FRAMEWORK
@interface SAiOSAdPlugin : CDVPlugin <ADBannerViewDelegate> {
#endif
ADBannerView* adView;
BOOL bannerIsVisible;
BOOL bannerIsInitialized;
BOOL bannerIsAtBottom;
}
@property (nonatomic, retain) ADBannerView* adView;
@property (assign) BOOL bannerIsVisible;
@property (assign) BOOL bannerIsInitialized;
@property (assign) BOOL bannerIsAtBottom;
@property (assign) BOOL isLandscape;
- (void) prepare:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) showAd:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) orientationChanged:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
@end