-
Notifications
You must be signed in to change notification settings - Fork 658
Open
Labels
Description
Feature description
API that would provide info about the display like screen size.
Reference implementation
Have you checked if the feature is accessible through the Android API?
https://developer.android.com/reference/android/view/WindowMetrics
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)
https://bitbucket.org/oF2pks/kaltura-device-info-android/src/master/
Output from the kaltura app:
"#DISPLAY=": {
"Built-inScreen_falseHDR": {
"Name": "Built-in Screen",
"State": "ON",
"ro.sf.lcd_density": "300",
"RefreshRate": 60.000003814697266,
"ScreenSpecs": "720 x 1280",
"ViewingMetrics": "DisplayMetrics{density=1.875, width=720, height=1280, scaledDensity=1.875, xdpi=294.967, ydpi=295.563}",
"AllMetrics": "720 x 1280, largest app 1280 x 1280, smallest app 720 x 720, appVsyncOff 2000000, presDeadline 11666666, mode 1, defaultMode 1, modes [{id=1, width=720, height=1280, fps=60.000004, alternativeRefreshRates=[]}], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[], mMaxLuminance=500.0, mMaxAverageLuminance=500.0, mMinLuminance=0.0}, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON}",
"SupportedHdrTypes": "",
"SupportedModes": "{id=1, width=720, height=1280, fps=60.000004, alternativeRefreshRates=[]}",
"Mode": "{id=1, width=720, height=1280, fps=60.000004, alternativeRefreshRates=[]}",
"RefreshRates21": "60.000004",
"Cutout": "null"
}
}
Rudxain and mguinhos