StorageDomain.BinaryFile


class StorageDomain.BinaryFile : StorageDomain


Targets local raw binary files stored within internal app storage.

Summary

Public constructors

BinaryFile(path: String, content: ByteArray)

Public functions

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

Public properties

ByteArray

The raw byte array content of the file.

String

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

Public constructors

BinaryFile

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

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: ByteArray

The raw byte array 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_image.png". An absolute path is used as is.