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 | Type | Required | Description |
---|---|---|---|
name | string | ✅ | 文件名称 |
fileType | "image" | "pdf" | ✅ | 文件类型 |
selector | string | 选择器 | |
bucketName | string | 对象存储桶名字, fileType只能为 | |
backgroundColor | string | 画布背景颜色, 默认透明 |