import { Component, OnInit } from '@angular/core';
import { Flashlight } from '@ionic-native/flashlight/ngx';
@Component({
  selector: 'app-nativeplugin',
  templateUrl: './nativeplugin.page.html',
  styleUrls: ['./nativeplugin.page.scss'],
})
export class NativepluginPage implements OnInit {

  constructor(private flashlight: Flashlight) { }
  openflash(){
    this.flashlight.switchOn();
  }
  ngOnInit() {
  }

}

 

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.