diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-03 23:21:46 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-03 23:21:46 +0100 |
commit | 9665fe692681bc958e55d00cc0d0b238b7aee694 (patch) | |
tree | dd222dec725f64b8065a09311d9b034e9b9751b3 /src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt | |
parent | 180528f620e53e4a828d6f4d427ce83817572f44 (diff) | |
download | kvision-9665fe692681bc958e55d00cc0d0b238b7aee694.tar.gz kvision-9665fe692681bc958e55d00cc0d0b238b7aee694.tar.bz2 kvision-9665fe692681bc958e55d00cc0d0b238b7aee694.zip |
Refactoring for kdoc API documentation with dokka
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt b/src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt index e9e99fc7..83ad69ca 100644 --- a/src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt +++ b/src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt @@ -1,6 +1,23 @@ +/** + * @author Robert Jaros + */ package pl.treksoft.kvision +/** + * Base class for applications. + * + * Every application class should inherit from this abstract class. +*/ abstract class ApplicationBase { - abstract fun start(state: Map<String, Any>) - abstract fun dispose(): Map<String, Any> +/** + * Starting point for an application. + * @param state Initial state between Hot Module Replacement (HMR). +*/ +abstract fun start(state: Map<String, Any>) + +/** + * Ending point for an application. + * @return final state for Hot Module Replacement (HMR). +*/ +abstract fun dispose(): Map<String, Any> } |