CodeListener

@ObjCName(name = "CodeListener", exact = true)
open class CodeListener

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onCodeLoaded(app: TreehouseApp<*>, view: TreehouseView<*>, initial: Boolean)

Invoked each time new code is loaded. This is called after the view's old children have been cleared but before the children of the new code have been added.

Link copied to clipboard
open fun onInitialCodeLoading(app: TreehouseApp<*>, view: TreehouseView<*>)

Invoked when the initial code is still loading. This can be used to signal a loading state in the UI before there is anything to display.

Link copied to clipboard
open fun onUncaughtException(app: TreehouseApp<*>, view: TreehouseView<*>, exception: Throwable)

Invoked when the application powering view fails with an uncaught exception. This function should display an error UI.