From 5ddf39b6388dc1949daa281150001311f63d5993 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Sun, 29 Nov 2015 22:29:55 -0600 Subject: [PATCH] More BLE --- demo/www/app/plugin/plugin.js | 9 ++++----- src/plugins/ble.ts | 5 +---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/demo/www/app/plugin/plugin.js b/demo/www/app/plugin/plugin.js index ca3a0cce..1bb2472d 100644 --- a/demo/www/app/plugin/plugin.js +++ b/demo/www/app/plugin/plugin.js @@ -6,13 +6,10 @@ import {Camera, StatusBar, Toast, ActionSheet} from 'ionic-native'; var demoArgs = {}; demoArgs[ActionSheet] = { show: { - 'title': 'What do you want with this image?', - 'buttonLabels': ['Share via Facebook', 'Share via Twitter'], + 'buttonLabels': ['Log out'], 'androidEnableCancelButton' : true, // default false 'winphoneEnableCancelButton' : true, // default false - 'addCancelButtonWithLabel': 'Cancel', - 'addDestructiveButtonWithLabel' : 'Delete it', - 'position': [20, 40] // for iPad pass in the [x, y] position of the popover + 'addCancelButtonWithLabel': 'Cancel' } } @@ -50,6 +47,8 @@ export class Plugin { let args = []; if(pluginMethodArgEntry) { args = pluginMethodArgEntry[method] || []; + + console.log('Found some default args', args); } Toast.showWithOptions({ diff --git a/src/plugins/ble.ts b/src/plugins/ble.ts index 8ee3f7ca..6e039d4a 100644 --- a/src/plugins/ble.ts +++ b/src/plugins/ble.ts @@ -7,10 +7,7 @@ import {Plugin, Cordova} from './plugin'; pluginRepo: 'https://github.com/don/cordova-plugin-ble-central' }) export class BLE { - @Cordova({ - successIndex: 2, - errIndex: 3 - }) + @Cordova() static scan(services:any[], seconds:number) {} @Cordova()