Factory

@ObjCName(name = "TreehouseAppFactory", exact = true)
interface Factory : AutoCloseable

Creates new instances of TreehouseApp.

This manages a cache that should be shared by all launched applications. This object holds a stateful disk cache. At most one instance with each cache name should be open at any time. Most applications should share a single Factory across all applications for best caching.

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun <A : AppService> create(appScope: CoroutineScope, spec: TreehouseApp.Spec<A>, eventListenerFactory: EventListener.Factory = EventListener.NONE): TreehouseApp<A>