Skip to content

Commit

Permalink
docs(camera): Add descriptions to CameraSource (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Sep 15, 2021
1 parent b5ac27d commit 294925b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions camera/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ Request camera and photo album permissions

#### CameraSource

| Members | Value |
| ------------ | --------------------- |
| **`Prompt`** | <code>'PROMPT'</code> |
| **`Camera`** | <code>'CAMERA'</code> |
| **`Photos`** | <code>'PHOTOS'</code> |
| Members | Value | Description |
| ------------ | --------------------- | ------------------------------------------------------------------ |
| **`Prompt`** | <code>'PROMPT'</code> | Prompts the user to select either the photo album or take a photo. |
| **`Camera`** | <code>'CAMERA'</code> | Take a new photo using the camera. |
| **`Photos`** | <code>'PHOTOS'</code> | Pick an existing photo fron the gallery or photo album. |


#### CameraDirection
Expand Down
9 changes: 9 additions & 0 deletions camera/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,17 @@ export interface Photo {
}

export enum CameraSource {
/**
* Prompts the user to select either the photo album or take a photo.
*/
Prompt = 'PROMPT',
/**
* Take a new photo using the camera.
*/
Camera = 'CAMERA',
/**
* Pick an existing photo fron the gallery or photo album.
*/
Photos = 'PHOTOS',
}

Expand Down

0 comments on commit 294925b

Please sign in to comment.