mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 14:38:45 +03:00
javadoc
This commit is contained in:
parent
f0fe10a11d
commit
1e718bb44f
1 changed files with 11 additions and 2 deletions
|
@ -50,8 +50,7 @@ interface FileService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Download a file.
|
* Download a file.
|
||||||
* Result will be a decrypted file, stored in the cache folder. id parameter will be used to create a sub folder to avoid name collision.
|
* Result will be a decrypted file, stored in the cache folder. url parameter will be used to create unique filename to avoid name collision.
|
||||||
* You can pass the eventId
|
|
||||||
*/
|
*/
|
||||||
fun downloadFile(
|
fun downloadFile(
|
||||||
downloadMode: DownloadMode,
|
downloadMode: DownloadMode,
|
||||||
|
@ -70,9 +69,19 @@ interface FileService {
|
||||||
*/
|
*/
|
||||||
fun getTemporarySharableURI(mxcUrl: String, mimeType: String?): Uri?
|
fun getTemporarySharableURI(mxcUrl: String, mimeType: String?): Uri?
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get information on the given file.
|
||||||
|
* Mimetype should be the same one as passed to downloadFile (limitation for now)
|
||||||
|
*/
|
||||||
fun fileState(mxcUrl: String, mimeType: String?) : FileState
|
fun fileState(mxcUrl: String, mimeType: String?) : FileState
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears all the files downloaded by the service
|
||||||
|
*/
|
||||||
fun clearCache()
|
fun clearCache()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get size of cached files
|
||||||
|
*/
|
||||||
fun getCacheSize() : Int
|
fun getCacheSize() : Int
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue