BlinkyViewModel

class BlinkyViewModel @Inject constructor(context: Context, navigator: Navigator, savedStateHandle: SavedStateHandle) : SimpleNavigationViewModel

Constructors

Link copied to clipboard
@Inject
constructor(context: Context, navigator: Navigator, savedStateHandle: SavedStateHandle)

Properties

Link copied to clipboard
val device: StateFlow<ServerDevice?>
Link copied to clipboard
val state: StateFlow<BlinkyViewState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun currentDestination(): StateFlow<DestinationId<*, *>?>
Link copied to clipboard
Link copied to clipboard
open override fun isInHierarchy(destination: DestinationId<*, *>): StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
open override fun navigateTo(to: DestinationId<Unit, *>, navOptions: NavOptions?)
open override fun navigateTo(to: DestinationId<Unit, *>, builder: NavOptionsBuilder.() -> Unit)
open override fun <A> navigateTo(to: DestinationId<A, *>, args: A, navOptions: NavOptions?)
open override fun <A> navigateTo(to: DestinationId<A, *>, args: A, builder: NavOptionsBuilder.() -> Unit)
Link copied to clipboard
open override fun navigateUp()
Link copied to clipboard
open override fun <R> navigateUpWithResult(from: DestinationId<*, R>, result: R)
Link copied to clipboard
fun <A> nullableParameterOf(destinationId: DestinationId<A?, *>): A?
Link copied to clipboard
open override fun open(link: Uri)
Link copied to clipboard
fun <A> parameterOf(destinationId: DestinationId<A & Any, *>): A
fun parameterOf(destinationId: DestinationId<Unit, *>): Nothing
Link copied to clipboard
open override fun <R> resultFrom(from: DestinationId<*, R>): Flow<NavigationResult<R>>
Link copied to clipboard
fun turnLed()