capture-snapshot
<advanced.capture-snapshot>provider构件 advanced.capture-snapshot
Examples
Basic
Definition
Parameters
| # | Name | Description | Type |
|---|---|---|---|
| 1 | options | 选项 | SnapshotOptions |
Returns
Promise<void | string>
Type references
SnapshotOptions
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
name | 文件名称 | string | ✅ | |
fileType | 文件类型 | "image" | "pdf" | ✅ | |
selector | 选择器 | string | ||
bucketName | 对象存储桶名字, fileType只能为 | string | ||
backgroundColor | 画布背景颜色, 默认透明 | string |