接口定义了PDF阅读器主框架,提供访问阅读器UI的入口。 例如:getTopBarImpl/getBottomBarImpl方法将提供PDF视图控制器的顶部栏和底部栏接口,可通过这些接口修改或自定义阅读器UI。
◆ addAttachBarItem()
| uiextensions.IMainFrame.addAttachBarItem |
( |
type |
, |
|
|
toolType |
, |
|
|
itemBean |
|
|
) |
| |
在指定标签页的附加栏添加功能项
- Parameters
-
- Returns
- 返回创建的基础项实例IBaseItem或undefined
◆ addTab()
| uiextensions.IMainFrame.addTab |
( |
tabType |
, |
|
|
title |
|
|
) |
| |
添加标签页
- Parameters
-
| tabType | 标签类型标识符 |
| title | 标签显示文本资源 |
◆ getBottomBarImpl()
| uiextensions.IMainFrame.getBottomBarImpl |
( |
| ) |
|
◆ getCurTopBarTab()
| uiextensions.IMainFrame.getCurTopBarTab |
( |
| ) |
|
◆ getCustomBottomBar()
| uiextensions.IMainFrame.getCustomBottomBar |
( |
| ) |
|
◆ getCustomTopBar()
| uiextensions.IMainFrame.getCustomTopBar |
( |
| ) |
|
◆ getFullScreenBottomBarImpl()
| uiextensions.IMainFrame.getFullScreenBottomBarImpl |
( |
| ) |
|
◆ getTabTools()
| uiextensions.IMainFrame.getTabTools |
( |
| ) |
|
◆ getTopBarImpl()
| uiextensions.IMainFrame.getTopBarImpl |
( |
| ) |
|
◆ hasTab()
| uiextensions.IMainFrame.hasTab |
( |
tabType |
| ) |
|
检查是否存在指定类型的标签页
- Parameters
-
- Returns
- 返回true表示存在该标签页
◆ hideToolbars()
| uiextensions.IMainFrame.hideToolbars |
( |
| ) |
|
◆ isFullScreen()
| uiextensions.IMainFrame.isFullScreen |
( |
| ) |
|
获取当前全屏状态
- Returns
- 返回true表示处于全屏模式
◆ isSupportFullScreen()
| uiextensions.IMainFrame.isSupportFullScreen |
( |
| ) |
|
检查是否支持全屏功能
- Returns
- 返回true表示支持全屏
◆ isToolbarEnabled()
| uiextensions.IMainFrame.isToolbarEnabled |
( |
position 'top'| 'bottom' |
| ) |
|
检查工具栏启用状态
- Parameters
-
| position | 目标位置('top'或'bottom') |
- Returns
- 返回true表示已启用
◆ isToolbarsVisible()
| uiextensions.IMainFrame.isToolbarsVisible |
( |
| ) |
|
检查工具栏可见状态
- Returns
- 返回true表示工具栏可见
◆ registerFullscreenStateChangedListener()
| uiextensions.IMainFrame.registerFullscreenStateChangedListener |
( |
listener |
| ) |
|
◆ removeTab()
| uiextensions.IMainFrame.removeTab |
( |
tabType |
| ) |
|
◆ setCurrentTab()
| uiextensions.IMainFrame.setCurrentTab |
( |
tabType |
| ) |
|
◆ setCustomBottomBar()
| uiextensions.IMainFrame.setCustomBottomBar |
( |
bar |
| ) |
|
◆ setCustomTopBar()
| uiextensions.IMainFrame.setCustomTopBar |
( |
bar |
| ) |
|
◆ setFullScreen()
| uiextensions.IMainFrame.setFullScreen |
( |
fullScreen |
| ) |
|
设置全屏显示模式
- Parameters
-
| fullScreen | true进入全屏,false退出全屏 |
◆ setToolbarEnabled()
| uiextensions.IMainFrame.setToolbarEnabled |
( |
position 'top'| 'bottom' |
, |
|
|
enabled |
|
|
) |
| |
设置工具栏启用状态
- Parameters
-
| position | 目标位置('top'或'bottom') |
| enabled | true启用,false禁用 |
◆ showToolbars()
| uiextensions.IMainFrame.showToolbars |
( |
| ) |
|
◆ unregisterFullscreenStateChangedListener()
| uiextensions.IMainFrame.unregisterFullscreenStateChangedListener |
( |
listener |
| ) |
|