BCL: updated camera for iOS and camera definitions

This commit is contained in:
Stanimir Karoserov
2014-05-27 16:42:50 +03:00
parent b2411b02e9
commit 3e61b37f4d
4 changed files with 36 additions and 6 deletions

11
camera/camera.d.ts vendored
View File

@@ -23,6 +23,10 @@ declare module "camera" {
* Specifies a camera flash mode.
*/
enum FlashMode {
/**
* The camera flash is disabled.
*/
OFF = -1,
/**
* Flash will be fired automatically when required.
*/
@@ -31,14 +35,10 @@ declare module "camera" {
* The camera flash is enabled.
*/
ON = 1,
/**
* The camera flash is disabled.
*/
OFF = 2
}
/**
* Camera options for capture an image.
* Camera options for capture an image. Currently not guaranteed to be used on Android
*/
interface Options {
/**
@@ -55,6 +55,7 @@ declare module "camera" {
// TODO most of hardware related parts need to handle onPause and onResume of the calling activities
/**
* TODO replace it with promise methods only and remove this class
* This class provides access to the device camera and photo libraries.
*/
class CameraManager {