AndroidWidgetFeedStorage

Generation folders under root; every promote and pointer write is an atomic rename.

Constructors

Link copied to clipboard
constructor(root: File)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun assetPath(generationDirectory: String, fileName: String): String?

Absolute path of assets/<fileName> inside generationDirectory, or null when unsafe or missing.

Link copied to clipboard
open override fun clear()

Removes every generation and the pointer.

Link copied to clipboard
Link copied to clipboard
open override fun writeGeneration(generationId: String, feedBytes: ByteArray, assets: List<WidgetAsset>, keepPrevious: Int)

Writes a complete generation, promotes it atomically, updates the pointer, prunes to keepPrevious old ones.