BackgroundReplacementEffect class
背景替换效果。
属性
| name | 效果的名称 |
方法
| configure(Background |
更新效果配置的方法 |
| is |
检查是否支持效果的方法。 |
构造函数详细信息
BackgroundReplacementEffect(BackgroundReplacementConfig)
new BackgroundReplacementEffect(bgReplacementConfig: BackgroundReplacementConfig)
参数
- bgReplacementConfig
- BackgroundReplacementConfig
属性详细信息
name
方法详细信息
configure(BackgroundReplacementConfig)
更新效果配置的方法
function configure(newBgReplacementConfig: BackgroundReplacementConfig): Promise<void>
参数
- newBgReplacementConfig
- BackgroundReplacementConfig
返回
Promise<void>
isSupported()
检查是否支持效果的方法。
function isSupported(): Promise<boolean>
返回
Promise<boolean>
如果当前环境中支持效果,则为 true