ImageSchemaclass
new ImageSchema({ one = "image", title = "Image", types = IMAGE_TYPES, ...options }: MediaSchemaOptions)| Param | Type | |
|---|---|---|
options | MediaSchemaOptions | Allowed options for MediaSchema. required |
.capture | FileCapture | Which camera a file picker for this schema opens straight away, or undefined for the normal picker. readonly |
| Return | |
|---|---|
ImageSchema | Schema that validates the file name of an image. |
Schema that validates the file name of an image.
- The extension must be one of
types(defaultIMAGE_TYPES).