Skip to content

Commit 8935023

Browse files
committed
Adds README for GetImage
1 parent 4253a2d commit 8935023

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This example gives the option to get a picture from either a camera or picture gallery.
2+
3+
Docs: http://ionicframework.com/docs/v2/native/camera/
4+
5+
You have to install the plugin with:
6+
```sh
7+
$ ionic plugin add cordova-plugin-camera --save

src/providers/util/camera.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class CameraProvider {
1212
}
1313

1414
getPictureFromPhotoLibrary() {
15-
return this.getImage(Camera.PictureSourceType.PHOTOLIBRARY, true);
15+
return this.getImage(Camera.PictureSourceType.PHOTOLIBRARY);
1616
}
1717

1818
// This method takes optional parameters to make it more customizable

0 commit comments

Comments
 (0)