Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| count | Number | No | Maximum number of images (default: 1) |
| sourceType | Array | No | Sources: ['album'], ['camera'], or both |
| success | Function | No | Callback with image paths |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| apFilePaths | Array | Array of local file paths |
Code Example
Related APIs
my.previewImage
Preview images
my.saveImage
Save image