cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsoref <...@git.apache.org>
Subject [GitHub] cordova-plugin-globalization pull request: BB10 implementation
Date Wed, 30 Jul 2014 18:33:23 GMT
Github user jsoref commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-globalization/pull/18#discussion_r15603016
  
    --- Diff: src/blackberry10/native/readme.txt ---
    @@ -0,0 +1,406 @@
    +Template for BlackBerry 10 Cordova Plugins
    +==========================================
    +
    +BlackBerry 10 Cordova Plugins create a bridge between JavaScript code in an HTML5 application
and C/C++ and/or Qt code in the plugin, allowing access to native libraries, which are not
part of the HTML5 specification. The BlackBerry 10 Plugins included with the Cordova SDK also
follow the same or similar format as shown in this template.
    +
    +Plugins offer a JavaScript API which communicates through an interface to native methods.
This interface can send and receive data through strings, or data that can be represented
as a string such as JSON and Base64.
    +
    +This template includes examples for communicating in several ways:
    +
    +1. A function that returns a string from a native method.
    +2. A function that sends a string to, and gets another back, from a native method.
    +3. A function that calls a native method with a JSON object input, and provides a callback
function, which is fired by a native method, and receives JSON data.
    +4. Defining a property that is linked to native methods when retrieved or set.
    +5. Starting and Stopping a native thread, with a callback function that receives events
from the native thread.
    +
    +## Building and Testing the Sample
    +
    +The included sample is the default Cordova Hello World application created by the "cordova
create" command. It is ready to run on your simulator simply by calling "cordova run" in the
sample directory. It has been altered to include a div in "index.html" for displaying the
test data, and a set of test functions in "js/index.js" to excercise the template API and
display some results.
    --- End diff --
    
    sp: excercise
    
    (please consider wrapping lines to reasonable widths)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message