This commit is contained in:
Max Lynch 2015-11-29 22:29:55 -06:00
parent bb8c4b5cc1
commit 5ddf39b638
2 changed files with 5 additions and 9 deletions

View File

@ -6,13 +6,10 @@ import {Camera, StatusBar, Toast, ActionSheet} from 'ionic-native';
var demoArgs = {}; var demoArgs = {};
demoArgs[ActionSheet] = { demoArgs[ActionSheet] = {
show: { show: {
'title': 'What do you want with this image?', 'buttonLabels': ['Log out'],
'buttonLabels': ['Share via Facebook', 'Share via Twitter'],
'androidEnableCancelButton' : true, // default false 'androidEnableCancelButton' : true, // default false
'winphoneEnableCancelButton' : true, // default false 'winphoneEnableCancelButton' : true, // default false
'addCancelButtonWithLabel': 'Cancel', 'addCancelButtonWithLabel': 'Cancel'
'addDestructiveButtonWithLabel' : 'Delete it',
'position': [20, 40] // for iPad pass in the [x, y] position of the popover
} }
} }
@ -50,6 +47,8 @@ export class Plugin {
let args = []; let args = [];
if(pluginMethodArgEntry) { if(pluginMethodArgEntry) {
args = pluginMethodArgEntry[method] || []; args = pluginMethodArgEntry[method] || [];
console.log('Found some default args', args);
} }
Toast.showWithOptions({ Toast.showWithOptions({

View File

@ -7,10 +7,7 @@ import {Plugin, Cordova} from './plugin';
pluginRepo: 'https://github.com/don/cordova-plugin-ble-central' pluginRepo: 'https://github.com/don/cordova-plugin-ble-central'
}) })
export class BLE { export class BLE {
@Cordova({ @Cordova()
successIndex: 2,
errIndex: 3
})
static scan(services:any[], seconds:number) {} static scan(services:any[], seconds:number) {}
@Cordova() @Cordova()