object File
Main object for Cordova file.
enum class FileSystemType
File system types. |
const val ABORT_ERR: Int |
|
const val ENCODING_ERR: Int |
|
const val INVALID_MODIFICATION_ERR: Int |
|
const val INVALID_STATE_ERR: Int |
|
const val NO_MODIFICATION_ALLOWED_ERR: Int |
|
const val NOT_FOUND_ERR: Int |
|
const val NOT_READABLE_ERR: Int |
|
const val PATH_EXISTS_ERR: Int |
|
const val QUOTA_EXCEEDED_ERR: Int |
|
const val SECURITY_ERR: Int |
|
const val SYNTAX_ERR: Int |
|
const val TYPE_MISMATCH_ERR: Int |
suspend fun getSystemDirectories(): SystemDirs
Get system directories. |
|
suspend fun requestFileSystem(fileSystemType: File.FileSystemType, size: Long = 0): Result<FileSystem, FileException>
Request a file system of a given type. |
|
suspend fun resolveLocalFileSystemURL(url: String): Result<Entry, FileException>
Resolve given path to a file or directory entry. |
|
suspend fun resolveLocalFileSystemURLForDir(url: String): Result<DirectoryEntry, FileException>
Resolve given path to a directory entry. |
|
suspend fun resolveLocalFileSystemURLForFile(url: String): Result<FileEntry, FileException>
Resolve given path to a file entry. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |