Meshtastic-Android/app/src/main/java/com/geeksville/mesh/ui/Status.kt
2020-04-07 10:40:01 -07:00

28 lines
No EOL
757 B
Kotlin

package com.geeksville.mesh.ui
/*
data class ScreenInfo(val icon: Int, val label: String)
// defines the screens we have in the app
object Screen {
val settings = ScreenInfo(R.drawable.ic_twotone_settings_applications_24, "Settings")
val channel = ScreenInfo(R.drawable.ic_twotone_contactless_24, "Channel")
val users = ScreenInfo(R.drawable.ic_twotone_people_24, "Users")
val messages = ScreenInfo(R.drawable.ic_twotone_message_24, "Messages")
val map = ScreenInfo(R.drawable.ic_twotone_map_24, "Map")
}
@Model
object AppStatus {
var currentScreen: ScreenInfo = Screen.messages
}
/**
* Temporary solution pending navigation support.
*/
fun navigateTo(destination: ScreenInfo) {
AppStatus.currentScreen = destination
}
*/