365体育投注开户

Search docs/
Native SolutionsCore Device

Camera

v4.1.0

The Camera plugin offers the ability to take a photo, capture video and choose images from the system's image library.

Preferences (iOS)

  • CameraUsesGeolocation (boolean, defaults to false). For capturing JPEGs, set to true to get geolocation data in the EXIF header. This will trigger a request for geolocation permissions if set to true.
Cordova Usage

Add the preference in the config.xml

<preference name="CameraUsesGeolocation" value="false" />

Capacitor Usage

Add the preference in the capacitor.config.json

"cordova": {
  "preferences": {
    "CameraUsesGeolocation": "false"
  }
}

Index

Enumerations

Classes

Interfaces


Enumerations

DestinationType

DestinationType:

DATA_URL

DATA_URL: = 0


FILE_URL

FILE_URL: = 1


NATIVE_URI

NATIVE_URI: = 2



Direction

Direction:

BACK

BACK: = 0


FRONT

FRONT: = 1



EncodingType

EncodingType:

JPEG

JPEG: = 0


PNG

PNG: = 1



MediaType

MediaType:

ALLMEDIA

ALLMEDIA: = 2


PICTURE

PICTURE: = 0


VIDEO

VIDEO: = 1



PictureSourceType

PictureSourceType:

CAMERA

CAMERA: = 1


PHOTOLIBRARY

PHOTOLIBRARY: = 0


SAVEDPHOTOALBUM

SAVEDPHOTOALBUM: = 2



PopoverArrowDirection

PopoverArrowDirection:

ARROW_ANY

ARROW_ANY: = 5


ARROW_DOWN

ARROW_DOWN: = 2


ARROW_LEFT

ARROW_LEFT: = 3


ARROW_RIGHT

ARROW_RIGHT: = 4


ARROW_UP

ARROW_UP: = 1



Classes

Camera

Camera:

name: Camera

description: Take a photo or capture video.

365体育投注开户[Warning] Since IOS 10 the camera requires permissions to be placed in your config.xml add

<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
 <string>You can take photos</string>
</config-file>

inside of the <platform name='ios> section

usage:

import { Camera, CameraOptions } from '@ionic-enterprise/camera/ngx';

constructor(private camera: Camera) { }

...

const options: CameraOptions = {
  quality: 100,
  destinationType: this.camera.DestinationType.FILE_URI,
  encodingType: this.camera.EncodingType.JPEG,
  mediaType: this.camera.MediaType.PICTURE
}

this.camera.getPicture(options).then((imageData) => {
 // imageData is either a base64 encoded string or a file URI
 // If it's base64 (DATA_URL):
 let base64Image = 'data:image/jpeg;base64,' + imageData;
}, (err) => {
 // Handle error
});

interfaces365体育投注开户: CameraOptions CameraPopoverOptions

DestinationType

● DestinationType: object

365体育投注开户Constant for possible destination types

Type declaration

DATA_URL: number

Return base64 encoded string. DATA_URL can be very memory intensive and cause app crashes or out of memory errors. Use FILE_URI or NATIVE_URI if possible

FILE_URI: number

365体育投注开户Return file uri (content://media/external/images/media/2 for Android)

NATIVE_URI: number

Return native uri (eg. asset-library://... for iOS)


Direction

● Direction: object

365体育投注开户Convenience constant

Type declaration

BACK: number

365体育投注开户Use the back-facing camera

FRONT: number

365体育投注开户Use the front-facing camera


EncodingType

● EncodingType: object

Convenience constant

Type declaration

JPEG: number

Return JPEG encoded image

PNG: number

Return PNG encoded image


MediaType

● MediaType: object

365体育投注开户Convenience constant

Type declaration

ALLMEDIA: number

Allow selection from all media types

PICTURE: number

365体育投注开户Allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType

VIDEO: number

Allow selection of video only, ONLY RETURNS URL


PictureSourceType

● PictureSourceType: object

Convenience constant

Type declaration

CAMERA: number

Take picture from camera

PHOTOLIBRARY: number

Choose image from picture library (same as PHOTOLIBRARY for Android)

SAVEDPHOTOALBUM: number

Choose image from picture library (same as SAVEDPHOTOALBUM for Android)


PopoverArrowDirection

● PopoverArrowDirection: object

Convenience constant

Type declaration

ARROW_ANY: number

ARROW_DOWN: number

ARROW_LEFT: number

ARROW_RIGHT: number

ARROW_UP: number


cleanup

cleanup(): Promise<any>

Remove intermediate image files that are kept in temporary storage after calling camera.getPicture. Applies only when the value of Camera.sourceType equals Camera.PictureSourceType.CAMERA and the Camera.destinationType equals Camera.DestinationType.FILE_URI.

Returns: Promise<any>


getPicture

getPicture(options?: CameraOptions): Promise<any>

365体育投注开户Take a picture or video, or load one from the library.

Parameters:

Name Type
Optional options CameraOptions

Returns: Promise<any> Returns a Promise that resolves with Base64 encoding of the image data, or the image file URI, depending on cameraOptions, otherwise rejects with an error.



Interfaces

CameraOptions

CameraOptions:

<Optional> allowEdit

● allowEdit: boolean

365体育投注开户Allow simple editing of image before selection.


<Optional> cameraDirection

● cameraDirection: number

Choose the camera to use (front- or back-facing). Defined in Camera.Direction. Default is BACK. BACK: 0 FRONT: 1


<Optional> correctOrientation

● correctOrientation: boolean

Rotate the image to correct for the orientation of the device during capture.


<Optional> destinationType

● destinationType: number

Choose the format of the return value. Defined in Camera.DestinationType. Default is FILE_URI. DATA_URL : 0, Return image as base64-encoded string (DATA_URL can be very memory intensive and cause app crashes or out of memory errors. Use FILE_URI or NATIVE_URI if possible), FILE_URI : 1, Return image file URI, NATIVE_URI : 2 Return image native URI (e.g., assets-library:// on iOS or content:// on Android)


<Optional> encodingType

● encodingType: number

365体育投注开户Choose the returned image file's encoding. Defined in Camera.EncodingType. Default is JPEG JPEG : 0 Return JPEG encoded image PNG : 1 Return PNG encoded image


<Optional> mediaType

● mediaType: number

Set the type of media to select from. Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in Camera.MediaType PICTURE: 0 allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType VIDEO: 1 allow selection of video only, WILL ALWAYS RETURN FILE_URI ALLMEDIA : 2 allow selection from all media types


<Optional> popoverOptions

● popoverOptions: CameraPopoverOptions

iOS-only options that specify popover location in iPad. Defined in CameraPopoverOptions.


<Optional> quality

● quality: number

Picture quality in range 0-100. Default is 50


<Optional> saveToPhotoAlbum

● saveToPhotoAlbum: boolean

365体育投注开户Save the image to the photo album on the device after capture.


<Optional> sourceType

● sourceType: number

Set the source of the picture. Defined in Camera.PictureSourceType. Default is CAMERA. PHOTOLIBRARY : 0, CAMERA : 1, SAVEDPHOTOALBUM : 2


<Optional> targetHeight

● targetHeight: number

365体育投注开户Height in pixels to scale image. Must be used with targetWidth. Aspect ratio remains constant.


<Optional> targetWidth

● targetWidth: number

365体育投注开户Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant.



CameraPopoverOptions

CameraPopoverOptions:

iOS-only parameters that specify the anchor element location and arrow direction of the popover when selecting images from an iPad's library or album.

arrowDir

● arrowDir: number

Direction the arrow on the popover should point. Defined in Camera.PopoverArrowDirection Matches iOS UIPopoverArrowDirection constants. ARROW_UP : 1, ARROW_DOWN : 2, ARROW_LEFT : 4, ARROW_RIGHT : 8, ARROW_ANY : 15


height

● height: number


width

● width: number


x

● x: number


y

● y: number



4.1.0 (Jun 27, 2019)

  • docs: remove outdated test docs translations (06dc38f)
  • build: remove .ratignore file that is not needed any more (5dc9527)
  • chore: fix repo and issue urls and license in package.json and plugin.xml (cad8bd1)
  • fix: temporarily remove Appium tests to unbreak CI (#468) (19d8e2f)
  • ci(travis): Update Travis CI configuration for new paramedic (#455) (cffd0ac)
  • fix(android): Fix NullPointerException error on some Android phones (#429) (295e928)
  • ci: Update CI Environment Setup for Node.js 6 (#438) (fae190e)
  • refactor(android): Enhancement: Camera plugin code cleanup (#425) (a13665d)
  • fix(android): Exif data lost on many cases (#331) (81b878d)
  • chore(github): Add or update GitHub pull request and issue template (b261d31)
  • fix(ios): fixes UIImagePickerController cancel handling for iOS11+ (#377) (24c8b6c)
  • docs: Remove deprecated platforms from docs (#394) (7ddb3df)
  • fix(android): return DATA_URL for ALLMEDIA if it's an image (#382) (60e7795)
  • refactor(ios): CB-13813: Remove old iOS code (#381) (ce77aab)
  • feat(ios): CB-13865: (Ipad) Making popover Window Size configurable using popoverOptions - imagePicker (#314) (cd72047)
  • chore(types): CB-13837: fix TypeScript Definition for CameraPopoverOptions (#379) (86b0bf2)
  • docs(android): clarify android quirk of cameraDirection (a5a3d88, bfbe4a1)
  • chore(release): Bump minor version (#370) (eed4433)
  • build: Remove automatic README generation (#365) (07e8574)
  • docs: remove JIRA link (bcb26fb)
  • ci(travis): also accept terms for android sdk android-27 (a346212)
  • docs: remove outdated docs translations that haven't been touched for 3 years (403682b)
  • fix(android): CB-14097: Fix crash when selecting some files with getPicture (#322) (5c23b65)
  • fix(browser): CB-13384: Added deprecation of video.src compatibility (#288) (5163d38)
  • fix(browser): Remove audio flag from getUserMedia (#284) (36343a8)
  • docs: replace warning emoji with warning unicode (#317) (ead7d5e)
  • feat(android): Update engines to use variables (#323) (6899c5e)
  • feat(android): CB-14017: Make com.android.support:support-v4 version configurable (#318) (e334656)
  • refactor(android): CB-14047: CameraLauncher: Replacing Repeated String literals with final variables (#319) (5ec121b)
  • fix(windows): CB-11714: added extra check for content-type in savePhoto() without options.targetWidth/Height (#242) (a201722, dc73954, dca4b9c, c1b9772, eb57b02)

4.0.3 (Apr 12, 2018)

  • CB-12593 Android Fix potential FileProvider conflicts
  • Fix a mistake in the examples of usage descriptions (#313)
  • CB-13854(ios): fix Camera opens in portrait orientation on iphones
  • Android Importing corrupt images using the Camera plugin crashes the app

4.0.2 (Jan 24, 2018)

  • CB-13781 (android) Fixed permissions request on Android 8 to save a photo into the photo album
  • Add build-tools-26.0.2 to travis

4.0.1 (Dec 27, 2017)

  • CB-13701Fix to allow 4.0.0 version install

4.0.0 (Dec 15, 2017)

3.0.0 (Nov 06, 2017)

  • Added cordova-OSX support
  • (all): Add 'protective' entry to cordovaDependencies
  • (iOS): document NSPhotoLibraryAddUsageDescription
  • (iOS): Remove iOS usage descriptions
  • (CI) Removed Browser builds from AppVeyor
  • Sync template with previous doc changes
  • Removed cordova-plugin-compat
  • (CI) Fix Android builds
  • setup eslint and removed jshint
  • CB-13028 (CI) Browser builds on Travis and AppVeyor
  • (Android, iOS) Fix occasional Appium tests failures
  • (CI) Speed up Android builds
  • (CI) Updated CI badges
  • (android) Fix of bug when Pictures folder did not exist.
  • (Android, iOS) Appium tests: try to create a session harder
  • (ios, Android): changes cancel error message to be consistent for iOS Android
  • CB-12764 (android) Adapt Appium tests for Android 7
  • added bugs entry to package.json.

2.4.1 (Apr 27, 2017)

  • CB-12622 Updated build badges in README
  • Fix manual test for uploading image
  • added package.json to tests folder
  • (android) Appium tests: Bust Android 6 and 7 permission dialogs
  • (android) Appium tests: Handle native cling

2.4.0 (Feb 28, 2017)

  • CB-12501 Android: Appium tests don't use XPath selectors anymore
  • Appium tests can now run on iOS 10
  • Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency
  • Fix permission check on Android
  • Corrected merges usage in plugin.xml
  • Add plugin typings from DefinitelyTyped
  • Added build badges for iOS 9.3 and iOS 10.0
  • [Appium] [Android] A few changes to the tests: - updated comments on how to run the tests. extra comments around functionality at certain points in the automation. - stub of a resolution checker on test startup - still need to figure out acceptable values. - moved session shutdown to an afterAll clause. - changed resolution determiner from using webview-based values to using the native windows dimensions - this helps as the webview values may be scaled down intentionally by manufacturers (via changing devicePixelRatio). furthermore, since the screen dimension automation is used purely for native UI automation, better to use the dimensions reported by the native context rather than the web context. - when finding elements by XPath, use multiple calls to avoid a Windows emulator + Android bug. Made this pattern consistent in the entire test.
  • - Fixed RELEASENOTES for cordova-plugin-camera
  • Removed Windows 8.1 build badges

2.3.1 (Dec 07, 2016)

  • CB-12224 Updated version and RELEASENOTES.md for release 2.3.1
  • Fix missing license headers.
  • Regenerate README.md from template
  • Added NSPhotoLibraryUsageDescription parameter to example install command Fixing some usages of NSPhotoLibraryUsageDescriptionentry
  • Updating compat dependency to 1.1.0 or better
  • Forgot to add CordovaUri.java to plugin.xml
  • Files Provider does not work with Android 4.4.4 or lower, and I have no idea why. Working around with CordovaUri
  • (Android) : Make this work with previous versions of Cordova via cordova-plugin-compat
  • BuildConfig from test project crept in source code thanks to Android Studio, removing
  • Managed to get Content Providers to work with a weird mix of Content Providers and non-Content Providers
  • Working on fix to API 24 no longer allowing File URIs to be passed across intents
  • - Remove pull request template checklist item: "iCLA has been submitted…"
  • Incremented plugin version.

2.3.0 (Sep 08, 2016)

  • CB-11795 Add 'protective' entry to cordovaDependencies
  • Add mandatory iOS 10 privacy description
  • windows added more explicit content-type when converting to target data on canvas
  • Add WP8.1 quirk when choosing image from photoalbum
  • Update PictureSourceType JSDoc to reflect README update
  • Update CameraPopoverHandle docs to reflect README update
  • Plugin uses Android Log class and not Cordova LOG class
  • Appium tests: A working fix for a flaky selection canceled failure
  • Tests should use resolveLocalFileSystemURL() instead of deprecated resolveFileSystemURI()
  • Increased session creation timeout for Appium tests
  • (Android) Appium tests: Fixed side menu opening on some more resolutions
  • (ios): fix CameraUsesGeolocation error
  • (ios) clarifications on PictureSourceType
  • (ios) fix cameraPopoverHandle.setPosition
  • (ios) Fixed CameraPopoverHandle documentation
  • Respect output format when retrieving images from gallery
  • Resolve iOS tests failures due to iOS quirks
  • Pend failing Appium tests on Sauce Labs for the time being (reverted from commit b69571724035f41642f3ee612c5b66e1f0c4386c)
  • Pend failing Appium tests on Sauce Labs for the time being
  • [Android] Appium tests should not fail when there is no camera
  • Add badges for paramedic builds on Jenkins
  • Appium: Better element clicking and session error handling
  • Appium tests: fixed element tapping on iOS 9
  • Appium tests: Added image verification
  • fixed some bad formatting that hid HTML tags and added link to sample
  • Set android quality default value to 50 on the java code
  • Moving message in PR template to a comment
  • Add pull request template. This closes #213
  • browser: Add classes for styling purposes
  • browser: Respect target width and height
  • browser: Fix incorrect mime type
  • CB-11162 Appium tests: retry spec on failure
  • Fix for orientation/scaling on Android 4.4+ devices
  • removed peer dependency
  • Appium tests: generate descriptive spec names
  • Adding front matter to README.md
  • Appum tests: Fixed some of the flaky failures
  • Added Sample section to the Camera plugin README

2.2.0 (Apr 15, 2016)

  • CB-10873 Avoid crash due to usage of uninitialized variable when writing geolocation data to image destination. Properly handle 'CameraUsesGeolocation' option by properly setting geolocation data in EXIF header in all cases
  • Appium tests stability improvements
  • Replace PermissionHelper.java with cordova-plugin-compat
  • Making focus handler work only for windows 10 phone
  • Run ios native tests on Travis
  • Fixing use of constants and PermissionHelper
  • Fix missing CAMERA permission for Android M
  • Adding sterner warnings about DATA_URL
  • getRealPath return null in some cases

2.1.1 (Mar 09, 2016)

  • CB-10825 Android should request READ permission for gallery source
  • added apache license header to appium files
  • Fixed spelling, capitalization, and other small issues.
  • Adding focus handler to resume video when user comes back on leaving the app while preview was running
  • Appium tests: adjust swipe distance on Android
  • Appium tests: fail fast if session is irrecoverable
  • Adding missing semi colon
  • Adding focus handler to make sure filepicker gets launched when app is active on Windows
  • iOS Fixed how checks access authorization to camera & library. This closes #146
  • Add JSHint for plugins
  • Appium tests: Added some timeouts, Taking a screenshot on failure, Retry taking a picture up to 3 times, Try to restart the Appium session if it's lost
  • Replacing images in README.md.
  • Added a lot of more cases to get the real path on Android
  • Android getPicture fails when getting a photo from the Photo Library - Google Photos
  • Appium tests: Properly switch to webview on Android
  • Added Appium tests
  • MobileSpec can't get results for Windows-Store 8.1 Builds
  • chore: edit package.json license to match SPDX id
  • Commenting out the verySmallQvga maxResolution option on Windows
  • Changing default maxResoltion to be highestAvailable for CameraCaptureUI on Windows
  • Browse - Layer camera UI on top of all!
  • CB-10502 Browser - Fix camera plugin exception in Chrome when click capture.
  • Adding comments
  • Camera tapping fix on Windows

2.1.0 (Jan 15, 2016)

  • added .ratignore
  • Android Adding reflective helper methods for permission requests
  • Android Implementing save/restore API to handle Activity destruction
  • App Crash cause by Camera Plugin iOS 7
  • Setting z-index values to maximum for UI buttons.

2.0.0 (Nov 18, 2015)

  • CB-10035 Updated RELEASENOTES to be newest to oldest
  • correct block usage for async calls
  • changed saveToPhotoAlbum to save uncompressed images for Android
  • Fixed filetype for uncompressed images and added quirk for Android
  • Removing CordovaResource library code in favour of the code we're supposed to be deprecating because that at least works.
  • Normalize line endings in Camera plugin docs
  • Add permission request for some gallery requests for Android
  • Adding a sterner warning for allowedit on Android
  • Fixing contribute link.
  • Using the CordovaResourceApi to fine paths of files in the background thread. If the file doesn't exist, return the content URI.
  • Add engine tag for Cordova-Android 5.0.x
  • : Added support for Marshmallow permissions (Android 6.0)
  • Try to use realpath filename instead of default modified.jpg
  • iOS camera plugin ignores quality parameter
  • iOS Taking a Picture With Option destinationType:NATIVE_URI doesn't show image
  • Camera plugin docs should be generated from the source
  • WP8 Camera Option destinationType:NATIVE_URI is a NO-OP
  • CB-9623 Fixes various issues when encodingType set to png
  • CB-9591 Retaining aspect ratio when resizing
  • Pick correct maxResolution
  • CB-9151 Trigger captureAction only once
  • Close RandomAccessStream once copied
  • Remove outdated iOS quirks about memory
  • Focus control and nice UI
  • Forgot to add another check on which URI we're using when fixing this thing the first time
  • Added macro to conditionally add NSData+Base64.h
  • Fixes compilation errors with cordova-ios 4.x
  • Fix returning native url on Windows.

1.2.0 (Jun 17, 2015)

  • Closing stale pull request: close #84
  • Closing stale pull request: close #66
  • cordova-plugin-camera documentation translation: cordova-plugin-camera
  • Update docs. This closes #100
  • attempt to fix npm markdown issue
  • fix picture rotation issue
  • one more alias
  • Fixed some nit white-space issues, aliased a little more
  • major refactor : readability
  • Patch for CB-8498, this closes #64
  • fix stripe issue with correct aspect ratio
  • - iOS camera unit tests broken
  • iOS8: Handle case where camera is not authorized (closes #49)
  • add missing license header

1.1.0 (May 06, 2015)

  • CB-8943 fix PickAndContinue issue on Win10Phone
  • Fix potential unreleased resources
  • : Remove unused import from File
  • typo fix cameraproxy.js
  • Rotate camera feed with device orientation
  • Support taking pictures from file for WP8
  • Use z-index instead of z-order

1.0.0 (Apr 15, 2015)

  • CB-8780 - Display popover using main thread. Fixes popover slowness (closes #81)
  • bumped version of file dependency
  • gave plugin major version bump
  • refactoring windows code to improve readability
  • use filePicker if saveToPhotoAlbum is true
  • remove unnecessary capabilities from xml
  • updated dependency, added peer dependency
  • updated blackberry specific references of org.apache.cordova.camera to cordova-plugin-camera
  • : Updated the docs to talk about the allowEdit quirks, it's not 100% working, but better than it was
  • : Fixed the flow so that we save the cropped image and use it, not the original non-cropped. Crop only supports G+ Photos Crop, other crops may not work, depending on the OEM
  • : Removing FileHelper call that was failing on Samsung Galaxy S3, now that we have a real path, we only need to update the MediaStore, not pull from it in this case
  • : Partial fix for Save Image to Gallery error found in MobileSpec
  • changed plugin-id to pacakge-name
  • properly updated translated docs to use new id
  • updated translated docs to use new id
  • Fix custom implementation of integerValueForKey (close #79)
  • Fix cordova-paramedic path change, build with TRAVIS_BUILD_DIR, use npm to install paramedic
  • docs: added 'Windows' to supported platforms
  • Updated Readme
  • : ios: 4.0.x Compatibility: Remove use of deprecated headers

0.3.6 (Mar 10, 2015)

  • Fix localize key for Videos. This closes #58
  • android: Fix crash when selecting images from DropBox with spaces in path (close #65)
  • add try ... catch for getting image orientation
  • fix threading issue with cameraPicker (fixes #72)
  • Integrate TravisCI
  • cordova-plugin-camera documentation translation: cordova-plugin-camera
  • Added package.json file

0.3.5 (Feb 04, 2015)

  • CB-8351 ios: Stop using now-deprecated [NSData base64EncodedString]
  • ios: Stop using now-deprecated integerValueForKey: class extension
  • ios: Use argumentForIndex rather than NSArray extension
  • ios: Add nativeURL external method support for CDVFileSystem->makeEntryForPath:isDirectory:
  • ios: Added XCTest unit tests project, with stubs (adapted from SplashScreen unit test setup)
  • ios: Re-factor iOS Camera plugin so that it is testable

0.3.4 (Dec 02, 2014)

  • CB-7977 Mention deviceready in plugin docs
  • Each plugin doc should have a ## Installation section
  • Fix memory leak of image data in imagePickerControllerReturnImageResult
  • Pass uri to crop instead of pulling the low resolution image out of the intent return (close #43)
  • Add orientation support for PNG to Android (closes #45)
  • cordova-plugin-camera documentation translation: cordova-plugin-camera

0.3.3 (Oct 03, 2014)

  • CB-7600 Adds informative message to error callback in manual test.

0.3.2 (Sep 17, 2014)

  • CB-7551 [Camera][iOS 8] Scaled images show a white line
  • hasPendingOperation flag in Camera plugin's takePicture should be reversed to fix memory errors
  • Camera plugin tests is missing a File dependency
  • do cleanup after copyImage manual test
  • cordova-plugin-camera documentation translation: cordova-plugin-camera
  • Resolve 'ms-appdata' URIs with File plugin
  • Fixed minor bugs with the browser
  • Adds missing window reference to prevent manual tests failure on Android and iOS
  • cordova-plugin-camera documentation translation: cordova-plugin-camera
  • Add config option to not use location information in Camera plugin (and default to not use it)
  • Geolocation fails in Camera plugin in iOS 8
  • Use single Proxy for both windows8 and windows.
  • Adds support for windows platform
  • Fixes manual tests failure on windows
  • Get the correct default for "quality" in the test
  • add documentation for manual tests
  • cordova-plugin-camera documentation translation: cordova-plugin-camera
  • Add config option to not use location information in Camera plugin (and default to not use it)
  • Geolocation fails in Camera plugin in iOS 8
  • Fixes manual tests failure on windows
  • Use single Proxy for both windows8 and windows.
  • Adds support for windows platform
  • Get the correct default for "quality" in the test
  • add documentation for manual tests
  • Updated docs for browser
  • Added support for the browser
  • [BlackBerry10] Use getUserMedia if camera card is unavailable
  • Update Camera plugin to support generic plugin webView UIView (which can be either a UIWebView or WKWebView)
  • Renamed test dir, added nested plugin.xml
  • added manual tests
  • Port camera tests to plugin-test-framework

0.3.1 (Aug 06, 2014)

  • FFOS update CameraProxy.js
  • ios: Add explicit dependency on CoreLocation.framework
  • [BlackBerry10] Doc correction - sourceType is supported
  • android: Fix callback firing before CROP intent is sent when allowEdit=true
  • android: Handle exception when SDCard is not mounted
  • ios: Delete postImage (dead code)
  • Prevent NPE on processResiultFromGallery when intent comes null
  • Remove iOS doc reference to non-existing navigator.fileMgr API
  • Docs updated with some default values
  • Removes File plugin dependency from windows8 code.
  • Use WinJS functionality to resize image instead of File plugin functionality
  • Updated translations for docs

0.3.0 (Jun 05, 2014)

  • CB-5895 documented saveToPhotoAlbum quirk on WP8
  • Remove deprecated symbols for iOS < 6
  • documentation translation: cordova-plugin-camera
  • ubuntu: use application directory for images
  • Add license
  • Little fix in code formatting
  • Use WinJS functionality to get base64-encoded content of image instead of File plugin functionality
  • camera.getPicture now always returns encoded JPEG image
  • Removed invalid note from CB-5398
  • CB-6576 - Returns a specific error message when app has no access to library.
  • add CONTRIBUTING.md
  • android: Fix a couple bugs with allowEdit pull request
  • android: Add support for allowEdit Camera option

0.2.9 (Apr 17, 2014)

  • CB-6460: Update license headers
  • : [windows8] use cordova/exec/proxy
  • [WP8] When only targetWidth or targetHeight is provided, use it as the only bound
  • , , , : [WP] Fix camera issues, cropping, memory leaks
  • : [iOS] fix warnings compiled under arm64 64-bit
  • [BlackBerry10] Add rim xml namespaces declaration
  • Add NOTICE file

0.2.8 (Feb 26, 2014)

  • CB-1826 Catch OOM on gallery image resize

0.2.7 (Feb 05, 2014)

  • CB-4919 firefox os quirks added and supported platforms list is updated
  • getPicture via web activities
  • Documented quirk for CB-5335 + CB-5206 for WP7+8
  • reference the correct firefoxos implementation
  • [BlackBerry10] Add permission to access_shared

0.2.6 (Jan 02, 2014)

  • CB-5658 Add doc/index.md for Camera plugin
  • Use Windows.Storage.ApplicationData.current.localFolder, instead of writing to app package.
  • [BlackBerry10] Adding platform level permissions
  • Android: Catch and ignore OutOfMemoryError in getRotatedBitmap()

0.2.5 (Dec 4, 2013)

  • fix camera for firefox os
  • getPicture via web activities
  • [ubuntu] specify policy_group
  • add ubuntu platform
    1. User Agent detection now detects AmazonWebView. 2. Change to use amazon-fireos as the platform if user agent string contains 'cordova-amazon-fireos'
  • Added amazon-fireos platform.

0.2.4 (Oct 28, 2013)

  • CB-5128: added repo + issue tag to plugin.xml for camera plugin
  • - iOS - Camera plugin should not show the status bar
  • updated plugin.xml for FxOS
  • Incremented plugin version on dev branch.

0.2.3 (Sept 25, 2013)

  • CB-4889 bumping&resetting version
  • forgot index.html
  • renaming core inside cameraProxy
  • [Windows8] commandProxy has moved
  • [Windows8] commandProxy has moved
  • added Camera API for FirefoxOS
  • Rename CHANGELOG.md -> RELEASENOTES.md
  • Fix XCode 5 camera plugin warnings
  • Fix compiler warnings
  • Move ExifHelper.java into Camera Plugin
  • Remove reference to DirectoryManager from CameraLauncher
  • Use a copy of FileHelper.java within camera-plugin.
  • Incremented plugin version on dev branch.
  • : We really should close cursors. It's just the right thing to do.
  • No longer causes a stack trace, but it doesn't cause the error to be called.
  • renaming org.apache.cordova.core.camera to org.apache.cordova.camera

0.2.1 (Sept 5, 2013)

  • CB-4656 Don't add line-breaks to base64-encoded images (Fixes type=DataURI)
  • copyright notice change

Other Versions