Skip to content

Access Argument in ViewModel for Navigator Compose #26

@shakil807g

Description

@shakil807g

Is it possible to get Navigation arguments from SavedStateHandle in ViewModels like we can do in Navigation Compose library

private val lectionName: String = savedStateHandle.get("lectionName")!!
private val packName: String = savedStateHandle.get("packName")!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions