<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<title>Hello H5+</title>
<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
</head>
<body><div id="content" class="content">
<h1><a name="plus.webview">webview</a></h1>
<p>Webview模块管理应用窗口界面,实现多窗口的逻辑控制管理操作。通过plus.webview可获取应用界面管理对象。</p>
<h2>方法:</h2>
<ul>
<li>
<a href="#plus.webview.all">all</a>: 获取所有Webview窗口</li>
<li>
<a href="#plus.webview.close">close</a>: 关闭Webview窗口</li>
<li>
<a href="#plus.webview.create">create</a>: 创建新的Webview窗口</li>
<li>
<a href="#plus.webview.currentWebview">currentWebview</a>: 获取当前窗口的WebviewObject对象</li>
<li>
<a href="#plus.webview.getDisplayWebview">getDisplayWebview</a>: 获取屏幕所有可视的Webview窗口</li>
<li>
<a href="#plus.webview.getWebviewById">getWebviewById</a>: 查找指定标识的WebviewObject窗口</li>
<li>
<a href="#plus.webview.getLaunchWebview">getLaunchWebview</a>: 获取应用首页WebviewObject窗口对象</li>
<li>
<a href="#plus.webview.getSecondWebview">getSecondWebview</a>: 获取应用第二个首页WebviewObject窗口对象</li>
<li>
<a href="#plus.webview.getTopWebview">getTopWebview</a>: 获取应用显示栈顶的WebviewObject窗口对象</li>
<li>
<a href="#plus.webview.hide">hide</a>: 隐藏Webview窗口</li>
<li>
<a href="#plus.webview.open">open</a>: 创建并打开Webview窗口</li>
<li>
<a href="#plus.webview.show">show</a>: 显示Webview窗口</li>
<li>
<a href="#plus.webview.startAnimation">startAnimation</a>: Webview窗口组合动画</li>
<li>
<a href="#plus.webview.defaultHardwareAccelerated">defaultHardwareAccelerated</a>: 获取Webview默认是否开启硬件加速</li>
</ul>
<h2>对象:</h2>
<ul>
<li>
<a href="#plus.webview.AnimationTypeShow">AnimationTypeShow</a>: 一组用于定义页面或控件显示动画效果</li>
<li>
<a href="#plus.webview.AnimationTypeClose">AnimationTypeClose</a>: 一组用于定义页面或控件关闭的动画效果</li>
<li>
<a href="#plus.webview.WebviewObject">WebviewObject</a>: Webview窗口对象,用于操作加载HTML页面的窗口</li>
<li>
<a href="#plus.webview.WebviewAnimationOptions">WebviewAnimationOptions</a>: Webview窗口动画参数</li>
<li>
<a href="#plus.webview.WebviewAnimationStyles">WebviewAnimationStyles</a>: Webview窗口动画样式</li>
<li>
<a href="#plus.webview.WebviewBounceStyle">WebviewBounceStyle</a>: Webview窗口回弹样式</li>
<li>
<a href="#plus.webview.WebviewContentAnimationOptions">WebviewContentAnimationOptions</a>: Webview窗口内容动画参数</li>
<li>
<a href="#plus.webview.WebviewDock">WebviewDock</a>: 原生控件在窗口中停靠的方式</li>
<li>
<a href="#plus.webview.WebviewDragEvent">WebviewDragEvent</a>: Webview窗口滑动事件数据</li>
<li>
<a href="#plus.webview.WebviewDragOptions">WebviewDragOptions</a>: 窗口手势操作参数</li>
<li>
<a href="#plus.webview.WebviewDragOtherViewOptions">WebviewDragOtherViewOptions</a>: 手势操作关联对象参数</li>
<li>
<a href="#plus.webview.WebviewDrawOptions">WebviewDrawOptions</a>: 截屏绘制操作参数</li>
<li>
<a href="#plus.webview.WebviewNavigationbarStyles">WebviewNavigationbarStyles</a>: 窗口导航栏控件样式</li>
<li>
<a href="#plus.webview.WebviewSplitLineStyles">WebviewSplitLineStyles</a>: 窗口导航栏控件分割线样式</li>
<li>
<a href="#plus.webview.WebviewBackButtonStyles">WebviewBackButtonStyles</a>: 窗口导航栏控件返回键样式</li>
<li>
<a href="#plus.webview.WebviewEvent">WebviewEvent</a>: Webview窗口事件</li>
<li>
<a href="#plus.webview.WebviewExtraOptions">WebviewExtraOptions</a>: JSON对象,原生窗口扩展参数</li>
<li>
<a href="#plus.webview.WebviewPosition">WebviewPosition</a>: 原生控件在窗口中显示的位置</li>
<li>
<a href="#plus.webview.WebviewRefreshStyles">WebviewRefreshStyles</a>: Webview窗口下拉刷新样式</li>
<li>
<a href="#plus.webview.WebviewRenderedEventOptions">WebviewRenderedEventOptions</a>: Webview窗口rendered事件参数</li>
<li>
<a href="#plus.webview.WebviewStatusbarStyles">WebviewStatusbarStyles</a>: JSON对象,Webview窗口的系统状态栏区域样式</li>
<li>
<a href="#plus.webview.WebviewStyles">WebviewStyles</a>: JSON对象,Webview窗口对象的样式</li>
<li>
<a href="#plus.webview.WebviewTransform">WebviewTransform</a>: 一组用于定义页面或控件变形的属性</li>
<li>
<a href="#plus.webview.WebviewTransition">WebviewTransition</a>: 一组用于定义页面或控件转换效果的属性</li>
<li>
<a href="#plus.webview.WebviewOverrideResourceOptions">WebviewOverrideResourceOptions</a>: 拦截Webview窗口资源请求的参数</li>
<li>
<a href="#plus.webview.WebviewOverrideUrlOptions">WebviewOverrideUrlOptions</a>: 拦截Webview窗口URL请求的属性</li>
<li>
<a href="#plus.webview.WebviewListenResourceOptions">WebviewListenResourceOptions</a>: 监听Webview窗口资源加载的属性</li>
</ul>
<h2>回调方法:</h2>
<ul>
<li>
<a href="#plus.webview.BounceEventCallback">BounceEventCallback</a>: Webview窗口回弹事件的回调函数</li>
<li>
<a href="#plus.webview.EventCallback">EventCallback</a>: Webview窗口事件的回调函数</li>
<li>
<a href="#plus.webview.PopGestureCallback">PopGestureCallback</a>: Webview窗口侧滑事件的回调函数</li>
<li>
<a href="#plus.webview.HistoryQueryCallback">HistoryQueryCallback</a>: 历史记录查询的回调函数</li>
<li>
<a href="#plus.webview.ListenResourceLoadingCallback">ListenResourceLoadingCallback</a>: Webview窗口加载资源事件的回调函数</li>
<li>
<a href="#plus.webview.OverrideUrlLoadingCallback">OverrideUrlLoadingCallback</a>: Webview窗口拦截URL链接跳转的回调函数</li>
<li>
<a href="#plus.webview.TitleUpdateCallback">TitleUpdateCallback</a>: Webview窗口加载页面标题更新的回调函数</li>
<li>
<a href="#plus.webview.WebviewAnimationCallback">WebviewAnimationCallback</a>: Webview窗口组合动画回调函数</li>
<li>
<a href="#plus.webview.WebviewDragCallback">WebviewDragCallback</a>: Webview窗口滑屏操作事件回调函数</li>
<li>
<a href="#plus.webview.SuccessCallback">SuccessCallback</a>: Webview窗口操作成功回调函数</li>
<li>
<a href="#plus.webview.ErrorCallback">ErrorCallback</a>: Webview窗口操作失败回调函数</li>
</ul>
<h2>权限:</h2>
<p>5+功能模块(permissions)</p>
<pre class="prettyprint linenums">
{
// ...
"permissions":{
// ...
"Webview": {
"description": "窗口管理"
}
}
}
</pre>
<h1><a name="plus.webview.AnimationTypeShow">AnimationTypeShow</a></h1>
<p>一组用于定义页面或控件显示动画效果</p>
<h2>常量:</h2>
<ul>
<li>"auto": <em>(<font class="type">String</font>
类型
)</em>自动选择动画效果<br><p>
自动选择动画效果,使用上次显示窗口设置的动画效果,如果是第一次显示则默认动画效果“none”。
</p>
</li>
<li>"none": <em>(<font class="type">String</font>
类型
)</em>无动画效果<br><p>
立即显示页面,无任何动画效果,页面显示默认的动画效果。
此效果忽略动画时间参数,立即显示。
对应关闭动画"none"。
</p>
</li>
<li>"slide-in-right": <em>(<font class="type">String</font>
类型
)</em>从右侧横向滑动效果<br><p>
页面从屏幕右侧外向内横向滑动显示。
对应关闭动画"slide-out-right"。
</p>
</li>
<li>"slide-in-left": <em>(<font class="type">String</font>
类型
)</
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
HBuilder实现App资源在线升级更新 (149个子文件)
.confirmed_dependencies 4B
common.css 6KB
prettify.sons.css 2KB
doc.css 1016B
.dependencies 4B
webview.html 70KB
index.html 42KB
maps.html 36KB
nativeobj.html 32KB
io.html 23KB
nativeUI.html 19KB
oauth.html 13KB
contacts.html 13KB
payment.html 12KB
geolocation.html 12KB
about.html 12KB
share.html 12KB
uploader.html 11KB
downloader.html 11KB
audio.html 10KB
navigator.html 10KB
zip.html 10KB
gallery.html 9KB
share.html 9KB
barcode.html 9KB
runtime.html 9KB
push.html 8KB
camera.html 8KB
gallery.html 8KB
speech.html 7KB
file.html 7KB
njs_ios_gamecenter.html 7KB
camera.html 7KB
push.html 7KB
nativeobj_animation.html 7KB
audio.html 7KB
xhr.html 6KB
runtime_launch.html 6KB
njs.html 5KB
webview_pullhead_custom.html 5KB
njs_android_shortcut.html 5KB
device.html 5KB
accelerometer.html 5KB
payment.html 5KB
nativeui_waiting.html 5KB
orientation.html 5KB
njs_efficient.html 5KB
key.html 5KB
doc.html 4KB
runtime.html 4KB
orientation_compass.html 4KB
nativeui.html 4KB
oauth.html 4KB
uploader_ret.html 4KB
events.html 4KB
maps_map.html 4KB
messaging.html 4KB
android.html 4KB
barcode.html 4KB
zip.html 4KB
device.html 4KB
statistic.html 3KB
orientation_level.html 3KB
webview.html 3KB
geolocation.html 3KB
uploader.html 3KB
message.html 3KB
accelerometer_shake.html 3KB
payment_iap.html 3KB
ios.html 3KB
storage.html 3KB
barcode_scan2.html 3KB
downloader.html 3KB
webview_animation.html 3KB
proximity.html 3KB
webview_pulltorefresh.html 3KB
barcode_scan.html 3KB
xhr.html 3KB
proximity.html 3KB
cache.html 3KB
events.html 3KB
webview_embed.html 3KB
speech.html 2KB
orientation.html 2KB
accelerometer.html 2KB
webview_pullrefresh.html 2KB
webview_mask.html 2KB
maps.html 2KB
navigator.html 2KB
webview_pullrefresh_custom.html 2KB
storage.html 2KB
camera_video.html 2KB
splashscreen.html 2KB
navigator_status.html 2KB
webview_pullhead.html 1KB
statistic.html 1KB
camera_image.html 1KB
console.html 1KB
native.js.html 1KB
nativeobj.html 1KB
共 149 条
- 1
- 2
资源评论
- 键盘侠0072020-09-21......这不是安卓....
吴维炜
- 粉丝: 1w+
- 资源: 36
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功