TreehouseApp

@ObjCName(name = "TreehouseApp", exact = true)
class TreehouseApp<A : AppService>

This class binds downloaded code to on-screen views.

Types

Link copied to clipboard
@ObjCName(name = "TreehouseAppFactory", exact = true)
class Factory : Closeable

This manages a cache that should be shared by all launched applications.

Link copied to clipboard
abstract class Spec<A : AppService>

Configuration and code to launch a Treehouse application.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val zipline: StateFlow<Zipline?>

Returns the current zipline attached to this host, or null if Zipline hasn't loaded yet. The returned value will be invalid when new code is loaded.

Functions

Link copied to clipboard
fun close()

Permanently stop the app and release any resources necessary to start it again.

Link copied to clipboard
fun createContent(source: TreehouseContentSource<A>, codeListener: CodeListener = CodeListener()): Content

Create content for source.

Link copied to clipboard
fun restart()

Stop the currently-running application (if any) and start it again.

Link copied to clipboard
fun start()

Initiate the initial code download and load, and start driving the views that are rendered by this app.

Link copied to clipboard
fun stop()

Stop any currently-running code and stop receiving new code.