Example #1
0
  setSplitPane(state: boolean) {

    if (this.platform.width() > 768) {
      this.splitPaneState = state;
    } else {
      this.splitPaneState = false;
    }
    console.log(this.getSplitPane());
  }
Example #2
0
 showPreviewCamera() {
   let tapEnabled = false;
   let dragEnabled = false;
   let toBack = true;
   let rect = {
       x: 0, 
       y: 0, 
       width: this.platform.width(), 
       height: this.platform.height()
   };
   cordova.plugins.camerapreview.startCamera(rect, "front", tapEnabled, dragEnabled, toBack);
 }
	constructor(
		private navCtrl: NavController,
		private navParams: NavParams,
		private plt: Platform
	) {
		this.width = this.plt.width();
		this.height = this.plt.height();
		this.isLand = this.plt.isLandscape();
		this.isPortrait = this.plt.isPortrait();
		this.isRTL = this.plt.isRTL;
		console.log('29 -- platform version: ', this.plt.version());
		this.currUrl = this.plt.url();
		this.currDir = this.plt.dir();
	}