Package-level declarations

Types

Link copied to clipboard
class UnzipUtil(zipFile: File, targetLocation: File)

Functions

Link copied to clipboard
fun dataDir(context: Context): File?

Gets the storage directory for all the app files.

Link copied to clipboard
fun ensureBitmapRead(file: File, size: Pair<Int, Int>? = null, scale: Int? = null): Bitmap

Reads the contents of a file and converts them into a Bitmap. If there's a failure while decoding the file, a RuntimeException will be thrown.

Link copied to clipboard
fun readBitmap(file: File, size: Pair<Int, Int>? = null, scale: Int? = null): Bitmap?

Reads the contents of a file and converts them into a Bitmap.

Link copied to clipboard
fun storeFile(file: File, stream: InputStream)
Link copied to clipboard
fun zipFile(file: File, targetStream: OutputStream, includeSelf: Boolean)

Compresses a file into a zip file

Properties

Link copied to clipboard
const val KBYTE: Int = 1024