incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] docs commit: iOS plugin guide minor update.
Date Sun, 21 Oct 2012 02:52:48 GMT
Updated Branches:
  refs/heads/master 5f6768f50 -> 1bc7c44d2


iOS plugin guide minor update.

-Remove mention of how the bridge works, since there are now multiple
bridges, and this information is not directly relevant.

-A couple other minor tweaks.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/1bc7c44d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/1bc7c44d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/1bc7c44d

Branch: refs/heads/master
Commit: 1bc7c44d2da3a21509c2724d246d348225bd49ff
Parents: 26bdfa7
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Sat Oct 20 22:52:01 2012 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Sat Oct 20 22:52:01 2012 -0400

----------------------------------------------------------------------
 docs/en/edge/guide/plugin-development/ios/index.md |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/1bc7c44d/docs/en/edge/guide/plugin-development/ios/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/plugin-development/ios/index.md b/docs/en/edge/guide/plugin-development/ios/index.md
index ab30d3a..701a803 100644
--- a/docs/en/edge/guide/plugin-development/ios/index.md
+++ b/docs/en/edge/guide/plugin-development/ios/index.md
@@ -19,10 +19,10 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 
 # Developing a Plugin on iOS
 
-Writing a plugin requires an understanding of the architecture of Cordova-iOS. Cordova-iOS
consists of a UIWebView where intercept commands passed in as url changes. These plugins are
represented as class mappings in the Cordova.plist file, under the Plugins key.
-
 A plugin is an Objective-C class that extends the `CDVPlugin` class.
 
+Each plugin class must be registered using the Cordova.plist file, under the Plugins key.
+
 ## Plugin Class Mapping 
 
 The JavaScript portion of a plugin always uses the `cordova.exec` method as follows:
@@ -134,11 +134,12 @@ Although UIWebViews run on a dedicated thread, plugin methods are executed
on th
 
     - (void)myPluginMethod:(CDVInvokedUrlCommand*)command
     {
+        // Check command.arguments here.
         [self.commandDelegate runInBackground:^{
             NSString* payload = nil;
             // Some blocking logic...
             CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
messageAsString:payload];
-            // sendPluginResult is thread-safe.
+            // The sendPluginResult method is thread-safe.
             [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
         }];
     }


Mime
View raw message