bn.chooseImage
▸ chooseImage(options
): Promise
<ChooseImageResponse
>
description
Selects an image from the local album or takes a photo with the camera.
example
Parameters
Name | Type |
---|---|
options | ChooseImageOptions |
Returns
Promise
<ChooseImageResponse
>
#
Interface: ChooseImageOptionsName | Type | Description |
---|---|---|
count | number | The maximum number of images allowed range is [1,9] |
sizeType | ("original" | "compressed" )[] | The size of the select image; valid options:- 'original';; - 'compressed' |
sourceType | ("album" | "camera" )[] | The source of the image; valid options:- 'album'; - 'camera' |
#
Interface: ChooseImageResponseName | Type | Description |
---|---|---|
tempFilePaths | string [] | The list of local temporary file paths to images |
tempFiles | ImageFile [] | The local temporary file list for images |