chooseFiles

abstract fun chooseFiles(action: () -> Long, fileChooser: (FileChooserParams?) -> List<ScriptFile>)

选择文件,会先执行 action,然后将 fileChooser 作为选择结果返回

Parameters

action

触发选择文件的动作,例如点击某个按钮、完成人机验证等, 需要返回一个此动作执行的最长时间,如果超时的话不会再触发 fileChooser

fileChooser

要选择的文件列表