kvision / pl.treksoft.kvision.cordova / write

write

(js) suspend fun FileEntry.write(data: Blob): Result<FileEntry, FileException>

Write file content from a Blob.

Parameters

data - a data Blob to be written.

(js) suspend fun FileEntry.write(data: String): Result<FileEntry, FileException>

Write file content from a plain string.

Parameters

data - a data string to be written.

(js) suspend fun FileEntry.write(data: ArrayBuffer): Result<FileEntry, FileException>

Write file content from an array buffer.

Parameters

data - an array buffer to be written.