Version: 2023.1
言語: 日本語
public static float dpi ;

説明

スクリーン/デバイスの現在の解像度(読み取り専用)

This is the actual DPI of the screen or physical device running the application. Returns 0 if unable to determine the current DPI.
Note: On Android devices this returns densityDpi which is a logical bucket that contains a range of DPI values. If you need a more precise dpi value, see this forum thread.