Companion

object Companion

属性(Properties)

Link copied to clipboard

这是 Android 存储根目录下的默认子目录,用于存储各种生成文件(artifacts)。

函数

Link copied to clipboard
fun FileArtifactService.Companion.fromExternalFilesDir(context: Context, subDir: String = FileArtifactService.DEFAULT_ARTIFACTS_SUBDIR): FileArtifactService

构建一个…… FileArtifactService “Rooted at” 的意思是“以……为基础;起源于……”。例如:“The company is rooted at a small town in the north of the country.”(这家公司的总部位于该国北部的一个小镇。) <app-specific external files dir>/<subDir>.

Link copied to clipboard
fun FileArtifactService.Companion.fromInternalFilesDir(context: Context, subDir: String = FileArtifactService.DEFAULT_ARTIFACTS_SUBDIR): FileArtifactService

构建一个…… FileArtifactService “Rooted at” 的意思是“以……为基础;起源于……”。例如:“The company is rooted at a small town in the north of the country.”(这家公司的总部位于该国北部的一个小镇。) <internal files dir>/<subDir> (Context.getFilesDir).