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 / cordova-read-config-vipera   js

Repository URL to install this package:

Version: 0.0.1 

/ src / ios / CordovaReadConfig.m

#import "CordovaReadConfig.h"
#import <Cordova/CDV.h>

@implementation CordovaReadConfig

- (void)readConfig:(CDVInvokedUrlCommand *)command
{
    @try
    {
        NSDictionary *settings = self.commandDelegate.settings;
        CDVPluginResult * pluginResult  = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:settings];
        [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
    }
    @catch (NSException *exception)
    {
        [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR] callbackId:command.callbackId];
    }
}

@end