Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ionic-native/camera

Package Overview
Dependencies
Maintainers
3
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic-native/camera - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

30

index.d.ts

@@ -84,2 +84,32 @@ import { IonicNativePlugin } from '@ionic-native/core';

}
export declare enum DestinationType {
DATA_URL = 0,
FILE_URL = 1,
NATIVE_URI = 2,
}
export declare enum EncodingType {
JPEG = 0,
PNG = 1,
}
export declare enum MediaType {
PICTURE = 0,
VIDEO = 1,
ALLMEDIA = 2,
}
export declare enum PictureSourceType {
PHOTOLIBRARY = 0,
CAMERA = 1,
SAVEDPHOTOALBUM = 2,
}
export declare enum PopoverArrowDirection {
ARROW_UP = 1,
ARROW_DOWN = 2,
ARROW_LEFT = 3,
ARROW_RIGHT = 4,
ARROW_ANY = 5,
}
export declare enum Direction {
BACK = 0,
FRONT = 1,
}
/**

@@ -86,0 +116,0 @@ * @name Camera

@@ -22,2 +22,38 @@ var __extends = (this && this.__extends) || (function () {

import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
export var DestinationType;
(function (DestinationType) {
DestinationType[DestinationType["DATA_URL"] = 0] = "DATA_URL";
DestinationType[DestinationType["FILE_URL"] = 1] = "FILE_URL";
DestinationType[DestinationType["NATIVE_URI"] = 2] = "NATIVE_URI";
})(DestinationType || (DestinationType = {}));
export var EncodingType;
(function (EncodingType) {
EncodingType[EncodingType["JPEG"] = 0] = "JPEG";
EncodingType[EncodingType["PNG"] = 1] = "PNG";
})(EncodingType || (EncodingType = {}));
export var MediaType;
(function (MediaType) {
MediaType[MediaType["PICTURE"] = 0] = "PICTURE";
MediaType[MediaType["VIDEO"] = 1] = "VIDEO";
MediaType[MediaType["ALLMEDIA"] = 2] = "ALLMEDIA";
})(MediaType || (MediaType = {}));
export var PictureSourceType;
(function (PictureSourceType) {
PictureSourceType[PictureSourceType["PHOTOLIBRARY"] = 0] = "PHOTOLIBRARY";
PictureSourceType[PictureSourceType["CAMERA"] = 1] = "CAMERA";
PictureSourceType[PictureSourceType["SAVEDPHOTOALBUM"] = 2] = "SAVEDPHOTOALBUM";
})(PictureSourceType || (PictureSourceType = {}));
export var PopoverArrowDirection;
(function (PopoverArrowDirection) {
PopoverArrowDirection[PopoverArrowDirection["ARROW_UP"] = 1] = "ARROW_UP";
PopoverArrowDirection[PopoverArrowDirection["ARROW_DOWN"] = 2] = "ARROW_DOWN";
PopoverArrowDirection[PopoverArrowDirection["ARROW_LEFT"] = 3] = "ARROW_LEFT";
PopoverArrowDirection[PopoverArrowDirection["ARROW_RIGHT"] = 4] = "ARROW_RIGHT";
PopoverArrowDirection[PopoverArrowDirection["ARROW_ANY"] = 5] = "ARROW_ANY";
})(PopoverArrowDirection || (PopoverArrowDirection = {}));
export var Direction;
(function (Direction) {
Direction[Direction["BACK"] = 0] = "BACK";
Direction[Direction["FRONT"] = 1] = "FRONT";
})(Direction || (Direction = {}));
/**

@@ -24,0 +60,0 @@ * @name Camera

2

index.metadata.json

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"CameraOptions":{"__symbolic":"interface"},"CameraPopoverOptions":{"__symbolic":"interface"},"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry 10","Browser","Firefox OS","iOS","Ubuntu","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"CameraOptions":{"__symbolic":"interface"},"CameraPopoverOptions":{"__symbolic":"interface"},"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry 10","Browser","Firefox OS","iOS","Ubuntu","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"CameraOptions":{"__symbolic":"interface"},"CameraPopoverOptions":{"__symbolic":"interface"},"DestinationType":{"DATA_URL":0,"FILE_URL":1,"NATIVE_URI":2},"EncodingType":{"JPEG":0,"PNG":1},"MediaType":{"PICTURE":0,"VIDEO":1,"ALLMEDIA":2},"PictureSourceType":{"PHOTOLIBRARY":0,"CAMERA":1,"SAVEDPHOTOALBUM":2},"PopoverArrowDirection":{"ARROW_UP":1,"ARROW_DOWN":2,"ARROW_LEFT":3,"ARROW_RIGHT":4,"ARROW_ANY":5},"Direction":{"BACK":0,"FRONT":1},"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry 10","Browser","Firefox OS","iOS","Ubuntu","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"CameraOptions":{"__symbolic":"interface"},"CameraPopoverOptions":{"__symbolic":"interface"},"DestinationType":{"DATA_URL":0,"FILE_URL":1,"NATIVE_URI":2},"EncodingType":{"JPEG":0,"PNG":1},"MediaType":{"PICTURE":0,"VIDEO":1,"ALLMEDIA":2},"PictureSourceType":{"PHOTOLIBRARY":0,"CAMERA":1,"SAVEDPHOTOALBUM":2},"PopoverArrowDirection":{"ARROW_UP":1,"ARROW_DOWN":2,"ARROW_LEFT":3,"ARROW_RIGHT":4,"ARROW_ANY":5},"Direction":{"BACK":0,"FRONT":1},"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry 10","Browser","Firefox OS","iOS","Ubuntu","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}}]
{
"name": "@ionic-native/camera",
"version": "4.0.0",
"version": "4.0.1",
"description": "Ionic Native - Native plugins for ionic apps",

@@ -5,0 +5,0 @@ "module": "index.js",

@@ -1,2 +0,2 @@

<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/camera/index.ts#L85">
<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/camera/index.ts#L121">
Improve this doc

@@ -3,0 +3,0 @@ </a>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc