IDP.Custom.Detection.detectAsync() 函数
function detectAsync(config: DetectItem<boolean>, option?: DetectOption): Promise<DetectItem<DetectResult>>;
集成的检测接口 调用后会打开检测面板,执行config中等于true的检测,并返回检测后的结果 注意:该检测只针对当前场景中的房间,建议配合IDP.Interaction.getSelectedRooms使用
参数:
-
config: DetectItem<boolean>检测的类型
-
option: DetectOption检测的选项 toolType默认当前所在工具线 检测的结果
返回值: Promise<DetectItem<DetectResult>>