Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[readme] formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed May 30, 2013
1 parent 6cf71f0 commit 10f8e6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The following barcode types are currently supported:
`success` and `fail` are callback functions. Success is passed an object with data, type and cancelled properties. Data is the text representation of the barcode data, type is the type of barcode detected and cancelled is whether or not the user cancelled the scan.

A full example could be:

```
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
scanner.scan(
Expand All @@ -61,7 +61,7 @@ A full example could be:
alert("Scanning failed: " + error);
}
);

```

## Encoding a Barcode ##
The plugin creates the object `window.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`.
Expand All @@ -72,6 +72,7 @@ Supported encoding types:
* PHONE_TYPE
* SMS_TYPE

```
A full example could be:
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
Expand All @@ -82,6 +83,7 @@ A full example could be:
alert("encoding failed: " + fail);
}
);
```

## Thanks on Github ##

Expand Down Expand Up @@ -110,4 +112,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

0 comments on commit 10f8e6b

Please sign in to comment.