From 0d3e665e4a15318e3d827aa4c15ddacab43e436c Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Thu, 19 May 2016 09:55:26 +0300 Subject: [PATCH] Update Readme.md --- camera/Readme.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/camera/Readme.md b/camera/Readme.md index ff5926bd5..8539ae03c 100644 --- a/camera/Readme.md +++ b/camera/Readme.md @@ -1,14 +1 @@ -Sample usage: -``` -var camera = require("camera"); - -camera.takePicture({"width": 300, "height": 300, "keepAspectRatio": true, "saveToGallery": true}).then(function (image) { - console.log('pic taken - width: ' + image.width + ", height: " + image.height); -}).fail(function (error) { - console.log('pic canceled'); -}); - -if(camera.isAvailable()){ - console.log('you may take a picture'); -} -``` +Allows you to take pictrues with the device's camera.