ValhallaFile

class ValhallaFile(context: Context, fileName: String, filesDir: File = context.filesDir)

Used to provide absolute paths and common file operations for use with valhalla.

Parameters

context

The Android context used for file system access.

fileName

The name of the file to manage.

filesDir

The directory where the file is stored. Defaults to the app's internal files directory.

See also

Constructors

Link copied to clipboard
constructor(context: Context, fileName: String, filesDir: File = context.filesDir)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun delete()
Link copied to clipboard
Link copied to clipboard
fun writeBytes(bytes: ByteArray)
Link copied to clipboard
fun writeText(text: String)