|
Foxit PDF SDK for HarmonyOS
3.0
|
Public Member Functions | |
| lpx2px (lpxValue, uiContext) | |
Static Public Member Functions | |
| static | fp2px (fpValue, uiContext) |
| static | getScreenHeight () |
| static | getScreenHeightVP (uiContext) |
| static | getScreenOrientation () |
| static | getScreenSize () |
| static | getScreenSizeVP (uiContext) |
| static | getScreenWidth () |
| static | getScreenWidthVP (uiContext) |
| static | px2vp (pxValue, uiContext) |
| static | px2vpInt (value, uiContext) |
| static | removeUIContext () |
| static | setUIContext (uiContext) |
| static | vp2px (vpValue, uiContext) |
| static | vp2pxInt (value, uiContext) |
Static Public Attributes | |
| static | uiContext |
屏幕显示工具类,提供屏幕参数获取和单位转换功能
|
static |
fp2px
| fpValue | - fp |
| uiContext | - 可选UI上下文 |
|
static |
获取屏幕物理高度(单位:像素)
|
static |
获取屏幕虚拟像素高度(单位:vp)
| uiContext | - 可选UI上下文,未提供时使用全局上下文 |
|
static |
获取屏幕方向状态
|
static |
获取屏幕物理尺寸
|
static |
|
static |
获取屏幕物理宽度(单位:px)
|
static |
获取屏幕虚拟像素宽度(单位:vp)
| uiContext | - 可选UI上下文,未提供时使用全局上下文 |
| FoxitPDFViewCtrl.DisplayUtil.lpx2px | ( | lpxValue | , |
| uiContext | |||
| ) |
lpx2px
| lpxValue | - lpx |
| uiContext | - 可选UI上下文 |
|
static |
px2vp
| pxValue | - px |
| uiContext | - 可选UI上下文,未提供时使用全局上下文 |
|
static |
px2vp(整数)
| value | - px |
| uiContext | - 可选UI上下文 |
|
static |
清除已设置的UI上下文
|
static |
设置全局UI上下文
| uiContext | - 需要设置的UI上下文对象 |
|
static |
vp2px
| vpValue | - vp |
| uiContext | - 可选UI上下文,未提供时使用全局上下文 |
|
static |
vp2px(整数)
| value | - vp |
| uiContext | - 可选UI上下文 |
|
static |
静态UI上下文对象,用于单位转换时获取设备参数