Skip to content

Conditional navigation and platform specific actions #155

Answered by azlekov
azlekov asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @arkivanov thanks for the nice proposals. I also thinking about KMM Permissions library and I found one MOKO permissions library, but it looks doesn't providing support for Jetpack Compose and for me looks hard to configure. That's why I decided to leave the permissions logic for now into the platform specific files until I understand better the Decompose and everything.

How I did it:

First I define pages like this:

interface Page {

    val model: Value<Model>

    fun onNextPageClicked()

    @Parcelize
    data class Model(
        val step: PageStep,
        val title: String,
        val description: String,
        val buttonText: String,
        val nextPageStep: PageStep? = null

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@arkivanov
Comment options

Comment options

You must be logged in to vote
3 replies
@arkivanov
Comment options

@azlekov
Comment options

@arkivanov
Comment options

Answer selected by azlekov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants