# CameraContext.takePhoto(Object object)
with Promise style call: Not supported
Mini Program plugin: Support
Taking photos
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
quality | string | normal | no | Image quality |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |
object.quality Legal value
value | Introductions | Minimum version |
---|---|---|
high | high quality | |
normal | Ordinary quality | |
low | Low quality |
# object.success callback
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
tempImagePath | string | Temporary path to photo file (Local path), Android is jpg image format, ios is png |