feat(image-picker): add new android methods

This commit is contained in:
Ibby 2016-10-14 06:48:57 -04:00 committed by Ibrahim Hadeed
parent 99c1d499f7
commit 3edfafb6f9

View File

@ -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; }
}