Foxit PDF SDK for HarmonyOS  3.0
uiextensions.IInteractionEventListener Class Reference

Public Member Functions

 onBackPressed ()
 
 onColorModeChange (oldColorMode, newColorMode)
 
 onConfigurationUpdate (newConfig)
 
 onScreenRotated (orientation)
 

Detailed Description

定义交互事件监听的接口,用于响应系统级交互操作

Member Function Documentation

◆ onBackPressed()

uiextensions.IInteractionEventListener.onBackPressed ( )

当物理返回键被按下时触发

Returns
返回布尔值表示是否拦截默认返回行为(true表示拦截)

◆ onColorModeChange()

uiextensions.IInteractionEventListener.onColorModeChange ( oldColorMode  ,
newColorMode   
)

当系统颜色模式(深色/浅色)发生变化时触发

Parameters
oldColorMode旧的颜色模式
newColorMode新的颜色模式

◆ onConfigurationUpdate()

uiextensions.IInteractionEventListener.onConfigurationUpdate ( newConfig  )

当系统配置发生更新时触发

Parameters
newConfig新的系统配置参数Configuration

◆ onScreenRotated()

uiextensions.IInteractionEventListener.onScreenRotated ( orientation  )

当屏幕方向发生改变时触发

Parameters
orientation新的屏幕方向值display.Orientation