Navigation Compose meet Type Safety

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 45

  • @AndroidDevelopers
    @AndroidDevelopers  2 місяці тому +12

    Subscribe for the latest updates → goo.gle/AndroidDevs

  • @vahekhachaturian2424
    @vahekhachaturian2424 2 місяці тому +124

    this is how all this videos should have been made. no bs corporate music, no apple style excitement, no weird acting. just a normal person sharing her knowledge. please only do this way, don't be annoying. please.

    • @irinanevidimka2748
      @irinanevidimka2748 2 місяці тому +3

      I was going to say the same. So just echoing what you said. Awesome. Many thanks to the presenter (and whomever prepared this crystal clear video).

    • @leonelp9593
      @leonelp9593 2 місяці тому +1

      agreed

    • @dj_256
      @dj_256 2 місяці тому

      Actually, as an iOS dev, this very Apple style and I like it

    • @stevensilitonga
      @stevensilitonga 2 місяці тому

      it also helps that the speaker isnt some bulgarian 47 year old with an ielts speaking score of 2.5

  • @phaZZi6461
    @phaZZi6461 2 місяці тому +13

    untapped voice talent

  • @ahmetozcan2278
    @ahmetozcan2278 2 місяці тому +6

    Thank you for great content. Can you also give an example for how to return a result to previous destination ?

  • @khoa-omega
    @khoa-omega 2 місяці тому +1

    Hay từ giọng nói cho đến nội dung.
    From Việt Nam with love 🇻🇳🇻🇳🇻🇳

  • @pantelischas9460
    @pantelischas9460 2 місяці тому +2

    very helpful, the previous implementation was a nightmare for complex data to pass

  • @5taycool
    @5taycool Місяць тому +2

    Could please specify where you put BotttomNavigation? Is it in Scaffold, that wraps all NavHost?

  • @k4ba
    @k4ba 2 місяці тому +3

    Nice explanation, very relaxing too

  • @rishavkumar7133
    @rishavkumar7133 2 місяці тому +6

    this was by far the best informative video from this channel looking forward to see more videos from Clara

  • @mubaraknative
    @mubaraknative 2 місяці тому +4

    Waiting for stable release for type safe navigation in compose nav since 2.8.0-alpha08, Now it is stable Voila!

  • @argahutama
    @argahutama 2 місяці тому +2

    Clear explanation. Thanks.

  • @smallbig857
    @smallbig857 2 місяці тому

    Thanks, it's really convenient (well, maybe except the decision to deal with path in deep links, which may be controversial)

  • @quantumgaming7
    @quantumgaming7 2 місяці тому

    Best video and best presenter till date loved the content loved the presentation. Please bring her with more topics ❤❤❤

  • @abhisheksaxena518
    @abhisheksaxena518 2 місяці тому

    Really nice and simple explanation

  • @achmadichzan
    @achmadichzan 2 місяці тому +2

    This is very important!

  • @Maheshbaraiya919
    @Maheshbaraiya919 2 місяці тому +2

    Helpful

  • @StraplessReligion
    @StraplessReligion 2 місяці тому

    Shiny new API...but is there any migration path for old XML based apps ...or multi module apps where all you can do is adding hacks or stick to deep links usage

  • @austin17ng
    @austin17ng 11 днів тому

    I have just experimented with NavType. It doesn't support to have a class in another class. For example: @Serializable data class Profile(val settings: Setting, val name: String), @Serializable Setting(val name: String). It didn't work

  • @sergioqcostas
    @sergioqcostas 2 місяці тому

    how about a navgraphbuilder with SharedTransitionScope composables?

  • @johnnykeener3727
    @johnnykeener3727 2 місяці тому +1

    Subscribed!

  • @timelord94
    @timelord94 Місяць тому

    about time

  • @TamHac
    @TamHac 2 місяці тому

    Hello, how can I navigate to a navigation graph with parameter and pass it to the startDestination?

    • @TamHac
      @TamHac 2 місяці тому

      I found it!
      Here is how:
      composable { navBackStackEntry ->
      val parameter= remember(navBackStackEntry) {
      navController.getBackStackEntry()
      .toRoute().parameter
      }
      ...
      )
      }

  • @shafaquesattar
    @shafaquesattar 2 місяці тому +1

    Why aren't they using kotlin-parcelize ?

    • @龔詩測試機1號
      @龔詩測試機1號 2 місяці тому +7

      Google is preparing navigation library as a KMP(Kotlin Multiplatform) solution, so it shouldn't contain any android-related components

    • @shafaquesattar
      @shafaquesattar 2 місяці тому

      @@龔詩測試機1號 ohh I see. Thanks 👍🏼

  • @aabhishek4911
    @aabhishek4911 2 місяці тому

    Funny that they knew that removing type safety was a bad thing still they went ahead with it and now had to bring in the type safety back.

  • @pyaesonehan19
    @pyaesonehan19 Місяць тому

  • @TheMikkelet
    @TheMikkelet 2 місяці тому

    What if I want to pass another data class as parameter? Like `data class LogginId(profile: Profile)`

    • @carrie5230
      @carrie5230 2 місяці тому

      Use the link "Navigation Compose meet Type Safety blog" in the video description. There is a section that called "Custom types".

    • @TheMikkelet
      @TheMikkelet 2 місяці тому

      @@carrie5230 Keep getting "Navigation destination that matches request cannot be found in nav graph" error

    • @carrie5230
      @carrie5230 2 місяці тому

      @@TheMikkelet Can't post a link, but try to recreate the code from the Custom Types section where the "Search" navigation route parameter type is the "SearchParameters" data class.

    • @GakisStylianos
      @GakisStylianos 2 місяці тому

      The docs cover how to add custom NavTypes

    • @Slai47
      @Slai47 Місяць тому

      Put it in a view model that both composables can access so you don't have to worry about type safety

  • @abhilashpatel3036
    @abhilashpatel3036 2 місяці тому

    is she AI or ready to be replaced by AI?

    • @SunAndMoon-zc9vd
      @SunAndMoon-zc9vd 2 місяці тому

      I was expecting your comment. I guess AI also can replace the comment field ;)

  • @ursimon
    @ursimon 2 місяці тому +1

    I am not buying it. Got ps5 slim with disc. Happy with it