Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-862

Document Plugin Authoring

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      Parent task for creating a set of guides for plugin authoring.

      Will need a bunch of sub-tasks for each native platform's plugin authoring guide. Also a JS guide.

      Question:

      One open question: how to handle versioning in this case? I.e. a 1.7 plugin authoring guide vs. a 2.0 guide.

      Plugin Name:

      Cordova Echo

      JavaScript Interface:

      window.echo(<string>, <callback>);

      Usage Example:

      window.echo("Hello...hello...hello...hello...", function(value) {
          // `value` is "Hello...hello...hello...hello..."
          alert(value);
      });
      

      Inner Working Details:

      • The string to echo should be passed through exec and into the native implementation.
      • The native code should then call the success callback.
      • If an empty string is provided, the native code should call the error callback.
      • The plugin should define a default error callback with the argument "Nothing to echo."
      • The JavaScript error callback should then invoke the success callback with the error value.

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            filmaj Filip Maj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: