Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Retains settings-session stores across configuration changes. A store remains available while its session is the active settings destination or while a navigation entry still holds a lease during an exit transition. Once neither condition applies, the store is cleared and its RadioConfigViewModel collectors are cancelled.

Functions

Link copied to clipboard
fun <R : Route> EntryProviderScope<NavKey>.configComposable(route: KClass<R>, routeInfo: Enum<*>, radioConfigViewModelProvider: @Composable (SettingsRoute.Settings?) -> RadioConfigViewModel, content: @Composable (RadioConfigViewModel) -> Unit)

Expect declarations for platform-specific config screens.

Link copied to clipboard
expect suspend fun getAboutLibrariesJson(): String
actual suspend fun getAboutLibrariesJson(): String
Link copied to clipboard
fun getNavRouteFrom(routeName: String): Route?
Link copied to clipboard

Registers SettingsRoute.TakServer; nothing on web, where a page cannot accept the TLS connections the TAK server needs. Takes backStack because dropUnlessResumed must run inside the entry's composable content.

Registers SettingsRoute.TakServer; nothing on web, where a page cannot accept the TLS connections the TAK server needs. Takes backStack because dropUnlessResumed must run inside the entry's composable content.

Returns the retained provider used by all entries in the active settings session.

Link copied to clipboard
Link copied to clipboard
actual fun SettingsMainScreen(settingsViewModel: SettingsViewModel, radioConfigViewModel: RadioConfigViewModel, onClickNodeChip: (Int) -> Unit, onNavigate: (Route) -> Unit, onBack: () -> Unit?)

Expect declaration for the platform-specific settings main screen.

expect fun SettingsMainScreen(settingsViewModel: SettingsViewModel, radioConfigViewModel: RadioConfigViewModel, onClickNodeChip: (Int) -> Unit, onNavigate: (Route) -> Unit, onBack: () -> Unit? = null)

Expect declaration for the platform-specific settings main screen.

actual fun SettingsMainScreen(settingsViewModel: SettingsViewModel, radioConfigViewModel: RadioConfigViewModel, onClickNodeChip: (Int) -> Unit, onNavigate: (Route) -> Unit, onBack: () -> Unit?)

Expect declaration for the platform-specific settings main screen.

Link copied to clipboard
expect fun TakModuleConfigContent(viewModel: RadioConfigViewModel, onBack: () -> Unit)

The ModuleRoute.TAK screen; empty on web, which hides the entry but can still be deep linked here.

actual fun TakModuleConfigContent(viewModel: RadioConfigViewModel, onBack: () -> Unit)

The ModuleRoute.TAK screen; empty on web, which hides the entry but can still be deep linked here.