Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DisplayInfo API #708

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add DisplayInfo API #708

wants to merge 1 commit into from

Conversation

Biswa96
Copy link
Member

@Biswa96 Biswa96 commented Sep 14, 2024

Fixes #595

@Rudxain
Copy link

Rudxain commented Sep 15, 2024

/data/data/com.termux/files/usr/libexec/termux-api-broadcast DisplayInfo

My stdout:

[
  {
    "Name": "Built-in Screen",
    "DisplayId": 0,
    "AppVsyncOffset": 0,
    "PresentationDeadline": 17666667,
    "RefreshRate": 60.0,
    "Rotation": 0,
    "SupportedModes": [
      {
        "ModeId": 1,
        "PhysicalHeight": 2400,
        "PhysicalWidth": 1080,
        "RefreshRate": 60.0
      }
    ],
    "HdrCapabilities": {
      "DesiredMaxAverageLuminance": 500.0,
      "DesiredMaxLuminance": 500.0,
      "DesiredMinLuminance": 0.0
    },
    "DisplayMetrics": {
      "Density": 3.375,
      "DensityDPI": 540,
      "HeightPixels": 2321,
      "ScaledDensity": 3.375,
      "WidthPixels": 1080,
      "xDPI": 409.4320068359375,
      "yDPI": 411.8909912109375
    }
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DisplayAPI
2 participants