# AgoraVideoViewSetupMode (/zh-CN/api-reference/rtc/macos/enum-videoviewsetupmode)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 枚举值 [#枚举值]
(0):(默认)清除所有已添加的视图,并替换为新视图。
(1):添加一个视图。
(2):删除一个视图。
:::note
注: 当你不再需要使用某个视图时,建议通过将 `setupMode` 设置为 `AgoraVideoViewSetupRemove` 来删除该视图,否则可能会导致渲染资源泄漏。
:::