Options
All
  • Public
  • Public/Protected
  • All
Menu

Module CordovaCameraPlugin

This plugin provides an API for taking pictures and for choosing images from the system's image library.

Please use 'Camera' as the plugin name in the manifest.json if you want to use this facility.

Usage:
navigator.camera.getPicture((data)=>{
this.zone.run(()=>{
let base64Img = "data:image/png;base64," + data
})
}, (err)=>{
console.log(err);
}, {
destinationType: CordovaCameraPlugin.Camera.DestinationType.DATA_URL,
sourceType: CordovaCameraPlugin.Camera.PictureSourceType.PHOTOLIBRARY
});

Index

Variables

Let Camera

Camera: object

Type declaration

  • DestinationType: object
    • DATA_URL: number
    • FILE_URI: number
    • NATIVE_URI: number
  • Direction: object
    • BACK: number
    • FRONT: number
  • EncodingType: object
    • JPEG: number
    • PNG: number
  • MediaType: object
    • ALLMEDIA: number
    • PICTURE: number
    • VIDEO: number
  • PictureSourceType: object
    • CAMERA: number
    • PHOTOLIBRARY: number
    • SAVEDPHOTOALBUM: number
  • PopoverArrowDirection: object
    • ARROW_ANY: number
    • ARROW_DOWN: number
    • ARROW_LEFT: number
    • ARROW_RIGHT: number
    • ARROW_UP: number