From 73e3d5d4077636487f07be1beff3b2714ee2b276 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 25 Mar 2013 15:57:26 +0000 Subject: upgrade to phonegap 2.5 for ios --- iPhone/CordovaLib/Classes/CDVCommandDelegate.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'iPhone/CordovaLib/Classes/CDVCommandDelegate.h') diff --git a/iPhone/CordovaLib/Classes/CDVCommandDelegate.h b/iPhone/CordovaLib/Classes/CDVCommandDelegate.h index 4a53f98..e177c63 100755 --- a/iPhone/CordovaLib/Classes/CDVCommandDelegate.h +++ b/iPhone/CordovaLib/Classes/CDVCommandDelegate.h @@ -22,9 +22,12 @@ @class CDVPlugin; @class CDVPluginResult; +@class CDVWhitelist; @protocol CDVCommandDelegate +@property (nonatomic, readonly) NSDictionary* settings; + - (NSString*)pathForResource:(NSString*)resourcepath; - (id)getCommandInstance:(NSString*)pluginName; - (void)registerPlugin:(CDVPlugin*)plugin withClassName:(NSString*)className CDV_DEPRECATED(2.2, "Use CDVViewController to register plugins, or use config.xml."); @@ -44,5 +47,9 @@ - (void)evalJs:(NSString*)js scheduledOnRunLoop:(BOOL)scheduledOnRunLoop; // Runs the given block on a background thread using a shared thread-pool. - (void)runInBackground:(void (^)())block; +// Returns the User-Agent of the associated UIWebView. +- (NSString*)userAgent; +// Returns whether the given URL passes the white-list. +- (BOOL)URLIsWhitelisted:(NSURL*)url; @end -- cgit v1.2.3