CurrencyValueFormatter |
The ValueFormatter for currency graphs. class CurrencyValueFormatter : ValueFormatter |
MainActivity |
The main Activity of this application. Handles cross-fragment navigation and settings. class MainActivity : AppCompatActivity, BiometricCallback |
StockSimulatorApplication |
This app's application. Enables dark mode and logging and handles data initialization. class StockSimulatorApplication : Application |
TimestampValueFormatter |
A timestamp value formatter that works around the graph library's float usage issue. class TimestampValueFormatter : ValueFormatter |
android.content.Context |
|
android.content.ContextWrapper |
|
java.lang.Exception |
|
kotlin.Double |
|
kotlin.String |
SHARED_PREFERENCES_KEY |
Key for app's shared preferences. const val SHARED_PREFERENCES_KEY: String |
initLineChart |
Initializes a line chart and its axis. fun initLineChart(chart: LineChart, context: Context): Unit |
mediatedLiveData |
Shortcut function for creating MediatorLiveData. fun <T> mediatedLiveData(block: MediatorLiveData<T>.() -> Unit): MediatorLiveData<T> |
noNulls |
Checks if all arguments are non-null. fun noNulls(vararg args: Any?): Boolean |
sourcedLiveData |
Creates a LiveData that is updated every time one of the sources changes. fun <T> sourcedLiveData(vararg sources: LiveData<*>, block: () -> T?): LiveData<T> |
updateLineChart |
Fills a line chart with entries (/data). fun updateLineChart(chart: LineChart, entryList: List<Entry>, label: String, locale: Locale, referenceTimestamp: Long = 0, xAxisValueFormatter: ValueFormatter = TimestampValueFormatter(
referenceTimestamp,
locale
), axisLeftValueFormatter: ValueFormatter = CurrencyValueFormatter("$")): Unit |