This commit is contained in:
Max Lynch
2015-09-28 11:50:47 -05:00
parent 1badf7ec85
commit d94ea354a8
2 changed files with 23 additions and 1 deletions

View File

@@ -7,8 +7,9 @@ import {NativePlugin} from '../plugin';
* Open installed apps on the device. Note: Android and iOS have different ways of
* opening and specifying launch params, so they have separate launch functions.
*
* Example:
* @usage
*
* ```js
* if(platform.is('ios') {
* AppLinks.check('twitter://').then((installed) => {
* AppLinks.openIOS('twitter://user?screen_name=ionicframework')
@@ -20,6 +21,7 @@ import {NativePlugin} from '../plugin';
* AppLinks.openAndroid([["action", "VIEW"], ['twitter://user?screen_name=ionicframework']])
* })
* }
* ```
*/
@NativePlugin({
name: 'AppLinks',

View File

@@ -3,6 +3,26 @@ import * as Rx from 'rx';
import * as util from 'ionic/util';
import {NativePlugin} from '../plugin';
/**
* Scan barcodes and QR codes.
*
* @usage
*
* ## Scanning a code
*
* ```js
* Barcode.scan().then((data) => {
* console.log("Result: " + result.text + "\n" + "Format: " + result.format + "\n" + "Cancelled: " + result.cancelled);
* }, (err) => {
* })
* ```
*
* ## Encoding data
*
* ```js
* Barcode.encode(Barcode.TEXT_TYPE).then((data) => {}, (fail) => {});
* ```
*/
@NativePlugin({
name: 'Barcode',
platforms: ['ios', 'android'],