2017-11-08 00:34:50 +00:00
|
|
|
---
|
|
|
|
id: imagepickerios
|
|
|
|
title: ImagePickerIOS
|
|
|
|
layout: docs
|
|
|
|
category: APIs
|
|
|
|
permalink: docs/imagepickerios.html
|
|
|
|
next: imagestore
|
|
|
|
previous: imageeditor
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Methods
|
|
|
|
|
|
|
|
- [`canRecordVideos`](docs/imagepickerios.html#canrecordvideos)
|
|
|
|
- [`canUseCamera`](docs/imagepickerios.html#canusecamera)
|
|
|
|
- [`openCameraDialog`](docs/imagepickerios.html#opencameradialog)
|
|
|
|
- [`openSelectDialog`](docs/imagepickerios.html#openselectdialog)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
# Reference
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
### `canRecordVideos()`
|
|
|
|
|
|
|
|
```javascript
|
2017-11-09 17:47:50 +00:00
|
|
|
ImagePickerIOS.canRecordVideos(callback)
|
2017-11-08 00:34:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### `canUseCamera()`
|
|
|
|
|
|
|
|
```javascript
|
2017-11-09 17:47:50 +00:00
|
|
|
ImagePickerIOS.canUseCamera(callback)
|
2017-11-08 00:34:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### `openCameraDialog()`
|
|
|
|
|
|
|
|
```javascript
|
2017-11-09 17:47:50 +00:00
|
|
|
ImagePickerIOS.openCameraDialog(config, successCallback, cancelCallback)
|
2017-11-08 00:34:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### `openSelectDialog()`
|
|
|
|
|
|
|
|
```javascript
|
2017-11-09 17:47:50 +00:00
|
|
|
ImagePickerIOS.openSelectDialog(config, successCallback, cancelCallback)
|
2017-11-08 00:34:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|