Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / de-core-plugin   js

Repository URL to install this package:

Version: 0.2.0 

/ src / ios / DECorePlugin.m

/********* de-core-plugin.m Cordova Plugin Implementation *******/

#import <Cordova/CDV.h>
#import <DEUtility/DEUtils.h>

#import "DECorePlugin.h"

@implementation DECorePlugin

- (void)coolMethod:(CDVInvokedUrlCommand*)command
{
    CDVPluginResult* pluginResult = nil;
    NSString* echo = [command.arguments objectAtIndex:0];

    if (echo != nil && [echo length] > 0) {
        pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:echo];
    } else {
        pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
    }

    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

+ (NSDictionary*)appConfiguration
{
    return [DEUtils dictionaryFromMainBundleXML:@"config" ofType:@"xml"];
    
}
@end