Take Photos Using the Camera with Jetpack Compose

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • This video will cover how to use CameraX to take a photo in a Jetpack Compose project and display the image using Coil.
    Article:
    www.kiloloco.c...
    Project:
    github.com/Kil...
    Kilo Loco on Social Media:
    www.kiloloco.com
    Discord - / discord
    Twitter - / kilo_loco
    #kotlin #jetpackcompose #androiddev

Комментарии • 23

  • @thomaswaldorf2829
    @thomaswaldorf2829 2 года назад +1

    Sooo much good info here! Thank you for making this easy! I was able to drop this right into my project! :)

  • @krbtube
    @krbtube 2 года назад

    Thanks super helpful! Great way to break this complex topic down and make it easy to understand.

  • @alexnovikov1609
    @alexnovikov1609 Год назад +2

    Great tutorial. Thank you! I went through it from cover to cover. Everything works great with the latest versions of the libraries at the moment except one thing: "Unresolved reference: shutdown" for the line "cameraExecutor.shutdown()". Any ideas how I can solve this?

  • @howididit917
    @howididit917 2 года назад

    You could use the accompanist permission package for requesting permissions in compose

  • @Ulkan117
    @Ulkan117 2 года назад

    Thanks a lot ! Clear and clean !

  • @RC-gt5om
    @RC-gt5om 2 года назад

    Great tutorial! Thank you!

  • @hinocenciopaulo
    @hinocenciopaulo 2 года назад

    Beautiful

  • @conorsmall1373
    @conorsmall1373 2 года назад

    legend

  • @bahromkomilov23
    @bahromkomilov23 2 года назад

    🔥🔥🔥

  • @joeharbaugh9752
    @joeharbaugh9752 2 года назад

    i like your channel and your presentation style. can you do a video on TextEditingController in flutter? also a vid on keys and global keys in flutter? thnx

  • @EmanNollase
    @EmanNollase 2 года назад

    great tutorial! question, how do you enable/disable torch? thanks

  • @stayavolkov95
    @stayavolkov95 2 года назад

    Hello bro. Could you make a similar video on how to record video in a jetpack compose?

  • @shkiper123
    @shkiper123 2 года назад

    @Kilo Loco is there any posibilities to add blur to camera preview?

  • @sb-cr4wu
    @sb-cr4wu Год назад

    great video thanks. If I want a button to switch between front/back cameras I can change CameraSelector in onClick on a button but how does that work with the LaunchedEffect? Thanks...

    • @sb-cr4wu
      @sb-cr4wu Год назад

      it seems to work by changing lensFacing to: var lensFacing by remember {mutableStateOf(CameraSelector.LENS_FACING_BACK) } but not sure if this is acceptable as a beginner

  • @HuiYoo
    @HuiYoo Год назад

    A quick warning. If it looks like the above code is not working then it likely that you are running an Android 12 emulator. At the time of this comment, there is a bug where Android 12 emulators do not trigger the takePicture function.

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 2 года назад

    Please do more of this advanced stuff with jetpack compose. Everyone does only Ui with jetpack compose, swift ui and flutter. Very few does actual business logic stuff

    • @Kilo_Loco
      @Kilo_Loco  2 года назад

      Each of those frameworks are UI frameworks. Can you give me a more concrete example of what you would like to see? I actually don't enjoy building UI stuff anyways.

    • @gofudgeyourselves9024
      @gofudgeyourselves9024 2 года назад +1

      @@Kilo_Loco yes these are ui frameworks. I would like to see other os functionalities integreation with these ui framework like file picker, saving file, health kit, google maps, how to use uikit with swiftui, how to use android view with constraint layout with jetpack compose etc