Device ready call

This commit is contained in:
Max Lynch
2015-11-29 16:30:15 -06:00
parent 3327fe8f45
commit 45dc983752
23 changed files with 150 additions and 14 deletions
+13 -1
View File
@@ -1,9 +1,21 @@
import {Page, NavParams} from 'ionic/ionic';
import {Camera, StatusBar, Toast} from 'ionic-native';
import {Camera, StatusBar, Toast, ActionSheet} from 'ionic-native';
// To specify arguments for any plugin calls
var demoArgs = {};
demoArgs[ActionSheet] = {
show: {
'title': 'What do you want with this image?',
'buttonLabels': ['Share via Facebook', 'Share via Twitter'],
'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
}
}
demoArgs[Toast] = {
showWithOptions: [
{