ContentManager

open class ContentManager

Manages content generated by the app.

[ Originally this was going to prepare stuff on demand, but it's easier to just create it all up front on first launch. ]

Class is thread-safe.

Types

Link copied to clipboard
interface ProgressUpdater

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun createAll(caller: Activity)
Creates all content, overwriting any existing entries.
Link copied to clipboard
open fun getContent(tag: Int): Content
Returns the specified item.
Link copied to clipboard
Returns the singleton instance.
Link copied to clipboard
open fun getPath(tag: Int): File
Returns the storage location for the specified item.
Link copied to clipboard
open fun initialize(context: Context)
Link copied to clipboard
open fun isContentCreated(unused: Context): Boolean
Returns true if all of the content has been created.
Link copied to clipboard
open fun prepareContent(caller: Activity, tags: Array<Int>)
Prepares the specified content.