ReceivedFile

data class ReceivedFile(val file: File, val fileName: String)

A wrapper object to signal a received (downloaded) file from the remote device.

Parameters

file

The File that has been received. Note, that the file does not have it's original file name. Check the fileName field for the name of the file as it has been originally passed to the other side of this API. Please note, that this file is placed in the applications temporary folder. This folder can be cleaned by users clearing the application cache as well as the Android system. If you want to persist the file, its the callers responsibility to move the file to a persistent location. Furthermore, if you don't want to persist the file and the processing of the file is completed, it's the callers responsibility to delete the file.

fileName

the original file name as it was passed to the other side of this API.

See also

Constructors

Link copied to clipboard
constructor(file: File, fileName: String)

Properties

Link copied to clipboard
val file: File
Link copied to clipboard