FileBuilder

interface FileBuilder

用于构建 ScriptFile 的接口.

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun setFile(file: File)

File 作为 FileBuilder 的路径.

Link copied to clipboard
abstract fun setPath(parent: String, child: String?)

设置绝对路径, 路径为 parent/child.

Link copied to clipboard
abstract fun setRelativePath(projectDir: String, relativePath: String)

设置路径为相对于项目 res 目录的路径, 只能在项目类型的脚本中使用.

Link copied to clipboard
abstract fun setUrl(url: String)

设置文件 url, 该url对应的文件会被下载到本地.