UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    What is the function in QML API to access screen brightness ?

    Scheduled Pinned Locked Moved App Development
    1 Posts 1 Posters 181 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • V Offline
        vijai
        last edited by

        I live in Austria and have a few discount cards and QR codes for memberships. The app "stocard" acts as a single app for all discount cards on android. Even if I cannot succeed in doing something that sophisticated, I would like to have an app where I store my bar codes as images and show them in places like supermarkets. The card wallet app in the open store cannot generate stacked bar codes. Hence, it doesn't serve the purpose here.

        The primary issue is these require the screen to be at its maximum brightness, or the scanners fail to read the bar code. The android applications usually automatically increase the brightness to the max when you open one.

        Currently, I have to manually disable automatic screen brightness on my Xiaomi Mi A2 running UBports every time. Therefore, I would like to know if any API functions are exposed to increase the screen brightness in such scenarios temporarily.

        Thank you.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post