StorageDomain.TextFile


class StorageDomain.TextFile : StorageDomain


Targets local raw text files stored within internal app storage.

Summary

Public constructors

TextFile(path: String, content: String)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

The string content of the file.

String

The path of the file, relative to the app's files directory (Context.getFilesDir()), such as "my_data.txt".

Public constructors

TextFile

Added in 1.0.0-alpha03
TextFile(path: String, content: String)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

content

Added in 1.0.0-alpha03
val content: String

The string content of the file.

path

Added in 1.0.0-alpha03
val path: String

The path of the file, relative to the app's files directory (Context.getFilesDir()), such as "my_data.txt". An absolute path is used as is.