Skip to content

Commit

Permalink
feat(image-picker): add new android methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Oct 15, 2016
1 parent 99c1d49 commit 3edfafb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/plugins/imagepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,22 @@ export class ImagePicker {
})
static getPictures(options: ImagePickerOptions): Promise<any> { return; }

/**
* Check if we have permission to read images
* @returns {Promise<boolean>} Returns a promise that resolves with a boolean that indicates whether we have permission
*/
@Cordova({
platforms: ['Android']
})
static hasReadPermission(): Promise<boolean> { return; }

/**
* Request permission to read images
* @returns {Promise<any>}
*/
@Cordova({
platforms: ['Android']
})
static requestReadPermission(): Promise<any> { return; }

}

0 comments on commit 3edfafb

Please sign in to comment.