|
Foxit PDF SDK for HarmonyOS
3.0
|
Public Member Functions | |
| onBackPressed () | |
| onColorModeChange (oldColorMode, newColorMode) | |
| onConfigurationUpdate (newConfig) | |
| onScreenRotated (orientation) | |
定义交互事件监听的接口,用于响应系统级交互操作
| uiextensions.IInteractionEventListener.onBackPressed | ( | ) |
当物理返回键被按下时触发
| uiextensions.IInteractionEventListener.onColorModeChange | ( | oldColorMode | , |
| newColorMode | |||
| ) |
当系统颜色模式(深色/浅色)发生变化时触发
| oldColorMode | 旧的颜色模式 |
| newColorMode | 新的颜色模式 |
| uiextensions.IInteractionEventListener.onConfigurationUpdate | ( | newConfig | ) |
当系统配置发生更新时触发
| newConfig | 新的系统配置参数Configuration |
| uiextensions.IInteractionEventListener.onScreenRotated | ( | orientation | ) |
当屏幕方向发生改变时触发
| orientation | 新的屏幕方向值display.Orientation |