Easy Guide to a WorkManager | Injecting a Worker with a Dagger-Hilt

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ส.ค. 2024

ความคิดเห็น • 56

  • @snitkjaer
    @snitkjaer 4 วันที่ผ่านมา

    Thanks a lot! Hilt and workers where driving me nuts 🙂

  • @MatheusFaleiro
    @MatheusFaleiro ปีที่แล้ว +4

    Wow, this tutorial is a lifesaver! The way you explained the process of injecting a Worker with Dagger-Hilt was clear and concise. Thanks to you, I was able to successfully integrate these powerful tools into my app. Keep up the fantastic work and please continue creating more informative videos like this!

  • @TheTuxtrons
    @TheTuxtrons ปีที่แล้ว

    I Started implemeting a feature that requires work manager and here is this tutorial that was just uploaded, You save my day.

  • @chloeyliu
    @chloeyliu 6 หลายเดือนก่อน

    Great video! I've been struggling initializing Worker with Hilt. This is the only approaches that worked! Thank you!!

  • @legato0
    @legato0 ปีที่แล้ว +3

    I like your youtube channel, I always learn something interesting. Good job! 👍

  • @ap-youtube
    @ap-youtube ปีที่แล้ว +4

    You are the man!!!

  • @morbix3683
    @morbix3683 2 หลายเดือนก่อน

    What a lifesaver you are

  • @rajamondal5084
    @rajamondal5084 ปีที่แล้ว +6

    i like your voice

    • @abada-s
      @abada-s ปีที่แล้ว

      ++🌷

  • @joelposhapir3737
    @joelposhapir3737 ปีที่แล้ว +3

    Thanks 👍: for such of an awesome video 💕

  • @زيد_اليماني
    @زيد_اليماني 9 หลายเดือนก่อน

    I love your educational videos, the explanation is clear and covers all the questions

  • @henrik908
    @henrik908 4 หลายเดือนก่อน

    Thanks man your videos are really helpful and professional.

  • @simonsarhin2114
    @simonsarhin2114 ปีที่แล้ว +3

    Why did u mark the api as @assisted whiles we have that in the network module.?

    • @StevdzaSan
      @StevdzaSan  ปีที่แล้ว +1

      That's correct, we don't need the @Assisted annotation on the api that we've specified, I've checked it now, and it works without. Thank for the question.

  • @abhijeetmule1521
    @abhijeetmule1521 ปีที่แล้ว +3

    Great man very nice

  • @bipinbharti6540
    @bipinbharti6540 3 หลายเดือนก่อน +1

    Awsome Video. Just awssome sir. There is any github link for this video?

  • @PSK005
    @PSK005 ปีที่แล้ว

    What a coincidence 😮. Yesterday i searched worker manager di. Today uploaded 😅

  • @BaBaKRaufi
    @BaBaKRaufi ปีที่แล้ว +3

    Perfect

  • @abada-s
    @abada-s ปีที่แล้ว +3

    you should catch(e: UnknownHostException){
    }
    then
    catch (e:Exception){}

  • @damg77
    @damg77 2 หลายเดือนก่อน

    Thank you very much for your video. Great! I have a question.
    ¿Can a workmanager be executed in the onDestroy event of an activity to insert data into a firestore database?

  • @ravshanbaxranov
    @ravshanbaxranov ปีที่แล้ว +2

    Super

  • @kalidsherefuddin
    @kalidsherefuddin 8 หลายเดือนก่อน

    Thanks

  • @kinohometv1985
    @kinohometv1985 ปีที่แล้ว +2

    😍😍😍😍😍

  • @johngray2875
    @johngray2875 6 หลายเดือนก่อน

    The custom factory wasn't necessary if you get your dependencies just right.

  • @jakisajordan
    @jakisajordan 7 หลายเดือนก่อน

    Super helpful 👏👏👏

  • @anudeepananth
    @anudeepananth ปีที่แล้ว

    Awesome explanation thank you...

  • @RodrigoAbreuOliveira
    @RodrigoAbreuOliveira ปีที่แล้ว +1

    Great guide, congratulations. A simple question, can I work with WorkManager inside the ViewModel class?

    • @StevdzaSan
      @StevdzaSan  ปีที่แล้ว +1

      Yeah I dont see why not.

  • @engineerfred9427
    @engineerfred9427 7 หลายเดือนก่อน

    Hey Stev.. thanks

  • @yarivzip
    @yarivzip 7 หลายเดือนก่อน

    Hi, great video. I followed your instructions and learned a lot. One thing that doesn't work for me. When I close the app I don't see the worker hello log.

  • @tch.777
    @tch.777 ปีที่แล้ว

    Amazing video thank you very much 🙏

  • @skarloti
    @skarloti ปีที่แล้ว

    The presentation is great! Why didn't you choose? KTOR? 6:11

  • @flowzk921
    @flowzk921 ปีที่แล้ว

    great one!

  • @arthurlloyd3237
    @arthurlloyd3237 ปีที่แล้ว

    such a good tutorial

  • @aliaksandrkreyer5908
    @aliaksandrkreyer5908 ปีที่แล้ว

    Ваще))) недавно искал, огонь 🔥🔥 💚💚

  • @Lucasgustavom
    @Lucasgustavom ปีที่แล้ว +1

    Thank you for the video!
    A question: why create a custom worker factory and don't use HiltWorkerFactory?

    • @johngray2875
      @johngray2875 6 หลายเดือนก่อน

      It wasn't necessary, but the config is a little tricky. Also didn't need @Assist on new parameter. Just the context and workerParams

  • @nastenkaoo
    @nastenkaoo ปีที่แล้ว

    perfect tutor

  • @FarooqAhmad-lr1fx
    @FarooqAhmad-lr1fx ปีที่แล้ว

    Please check this video, it has some error because it plays in a very low resolution with me. And also not shown any quality options in the settings

  • @dickyaryacode5279
    @dickyaryacode5279 11 หลายเดือนก่อน

    good tutorial :)

  • @bailandoconhumo9549
    @bailandoconhumo9549 8 หลายเดือนก่อน

    Woooooo!!! thaks!!!!!!

  • @tayrall
    @tayrall ปีที่แล้ว +1

    Hey stvezda-san, but what about using property injection (lateinit war) directly inside workmanager? Аnd i also want to see how be able to catch previously enqueued worker. And also how to pass progress notification from worker to activity

    • @johngray2875
      @johngray2875 6 หลายเดือนก่อน

      I don't believe you can do property injection in the workers.

  • @code_yad
    @code_yad ปีที่แล้ว

    Hi, I really want to learn Jetpack Compose, but I didn't see anywhere how to authenticate with a token, that's why I don't work much, if you can explain how to authenticate using Retrofit and save the token.🙂

  • @ahmadab9666
    @ahmadab9666 9 หลายเดือนก่อน

    in cleac architecture what layer must i put this workManager class, must i put the class in DataSource then i call it from repository ? i very confusing about that

  • @raulastete3035
    @raulastete3035 ปีที่แล้ว

    Which program do you use to make these awesome presentations?

    • @StevdzaSan
      @StevdzaSan  ปีที่แล้ว

      Figma, design wise.

  • @aiyuayaan
    @aiyuayaan ปีที่แล้ว

    How i can initiate multiple work manger ?

    • @StevdzaSan
      @StevdzaSan  ปีที่แล้ว

      You can chain multiple work requests. I'll cover that as well in some of the next videos.

  • @orerick2871
    @orerick2871 ปีที่แล้ว

    any updates on you next video?

  • @Adam0001
    @Adam0001 ปีที่แล้ว +1

    🔥🔥
    Keep great work up please 🤍