CB-7134 - Deprecate CDVPluginResult methods
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/0f28c935 Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/0f28c935 Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/0f28c935 Branch: refs/heads/wkwebview Commit: 0f28c9358842b4a3dccdab3ced98daa5a4246115 Parents: 0bf656c Author: Shazron Abdullah <[email protected]> Authored: Mon Jul 14 13:11:29 2014 -0700 Committer: Shazron Abdullah <[email protected]> Committed: Mon Jul 14 13:11:29 2014 -0700 ---------------------------------------------------------------------- CordovaLib/Classes/CDVPluginResult.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0f28c935/CordovaLib/Classes/CDVPluginResult.h ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVPluginResult.h b/CordovaLib/Classes/CDVPluginResult.h index 11b5377..e624d4d 100644 --- a/CordovaLib/Classes/CDVPluginResult.h +++ b/CordovaLib/Classes/CDVPluginResult.h @@ -18,6 +18,7 @@ */ #import <Foundation/Foundation.h> +#import "CDVAvailability.h" typedef enum { CDVCommandStatus_NO_RESULT = 0, @@ -61,8 +62,10 @@ typedef enum { - (NSString*)argumentsAsJSON; // These methods are used by the legacy plugin return result method -- (NSString*)toJSONString; -- (NSString*)toSuccessCallbackString:(NSString*)callbackId; -- (NSString*)toErrorCallbackString:(NSString*)callbackId; +- (NSString*)toJSONString CDV_DEPRECATED(3.6, "Only used by toSuccessCallbackString and toErrorCallbackString which are deprecated. This will be removed in 4.0.0"); + +- (NSString*)toSuccessCallbackString:(NSString*)callbackId CDV_DEPRECATED(3.6, "Use the CDVCommandDelegate method sendPluginResult:callbackId instead. This will be removed in 4.0.0"); + +- (NSString*)toErrorCallbackString:(NSString*)callbackId CDV_DEPRECATED(3.6, "Use the CDVCommandDelegate method sendPluginResult:callbackId instead. This will be removed in 4.0.0"); @end
