getFile

actual fun getFile(destinationUri: Uri): FileDownloadTask(source)


actual fun getFile(destinationFile: File): FileDownloadTask(source)

Deprecated (with error)

Replace with

import kotlinx.io.files.Path
getFile(Path(destinationFile.path))
actual fun getFile(destinationUri: <Error class: unknown class>): FileDownloadTask(source)

actual fun getFile(destinationFile: <Error class: unknown class>): FileDownloadTask(source)

Deprecated (with error)

Replace with

import kotlinx.io.files.Path
getFile(Path(destinationFile.path))
expect fun getFile(destinationUri: <Error class: unknown class>): FileDownloadTask(source)

Downloads the object to the file at destinationUri. Fails on JS, whose SDK has no file downloads.


expect fun getFile(destinationFile: <Error class: unknown class>): FileDownloadTask(source)

Deprecated (with error)

getFile(java.io.File) is Android/JVM-only; use getFile(Path) (kotlinx-io), on the JVM with Path(destinationFile.path), or getFile(Uri)

Replace with

import kotlinx.io.files.Path
getFile(Path(destinationFile.path))

Android/JVM only: downloads to a java.io.File; common code downloads to a kotlinx-io Path through getFile(Path), or to a Uri.

actual fun getFile(destinationUri: <Error class: unknown class>): FileDownloadTask(source)

Fails: the JS SDK downloads through URLs, not to files; use getBytes or getDownloadUrl.


actual fun getFile(destinationFile: <Error class: unknown class>): FileDownloadTask(source)

Deprecated (with error)

Replace with

import kotlinx.io.files.Path
getFile(Path(destinationFile.path))
actual fun getFile(destinationUri: Uri): FileDownloadTask(source)


actual fun getFile(destinationFile: File): FileDownloadTask(source)

Deprecated (with error)

Replace with

import kotlinx.io.files.Path
getFile(Path(destinationFile.path))
actual fun getFile(destinationUri: <Error class: unknown class>): FileDownloadTask(source)

Fails: the JS SDK downloads through URLs, not to files; use getBytes or getDownloadUrl.


actual fun getFile(destinationFile: <Error class: unknown class>): FileDownloadTask(source)

Deprecated (with error)

Replace with

import kotlinx.io.files.Path
getFile(Path(destinationFile.path))