本文整理了Java中android.webkit.WebView.onPause()
方法的一些代码示例,展示了WebView.onPause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.onPause()
方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:onPause
暂无
代码示例来源:origin: commonsguy/cw-omnibus
/**
* Called when the fragment is visible to the user and actively running. Resumes the WebView.
*/
@Override
public void onPause() {
super.onPause();
mWebView.onPause();
}
代码示例来源:origin: commonsguy/cw-omnibus
/**
* Called when the fragment is visible to the user and
* actively running. Resumes the WebView.
*/
@TargetApi(11)
@Override
public void onPause() {
super.onPause();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
mWebView.onPause();
}
}
代码示例来源:origin: TommyLemon/APIJSON
@Override
protected void onPause() {
super.onPause();
wvWebView.onPause();
}
代码示例来源:origin: Justson/AgentWeb
@Override
public void onPause() {
if (this.mWebView != null) {
if (Build.VERSION.SDK_INT >= 11){
this.mWebView.onPause();
}
this.mWebView.pauseTimers();
}
}
代码示例来源:origin: TommyLemon/Android-ZBLibrary
@Override
protected void onPause() {
super.onPause();
wvWebView.onPause();
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void onPause() {
super.onPause();
if (webView != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
webView.onPause();
}
}
代码示例来源:origin: TheFinestArtist/FinestWebView-Android
@Override
protected void onDestroy() {
super.onDestroy();
BroadCastManager.unregister(FinestWebViewActivity.this, key);
if (webView == null) {
return;
}
if (APILevel.require(11)) {
webView.onPause();
}
destroyWebView();
}
代码示例来源:origin: robolectric/robolectric
@Test
public void shouldRecordOnPause() {
assertThat(shadowOf(webView).wasOnPauseCalled()).isFalse();
webView.onPause();
assertThat(shadowOf(webView).wasOnPauseCalled()).isTrue();
}
代码示例来源:origin: sunfusheng/GlideImageView
public void onPause() {
webView.getSettings().setJavaScriptEnabled(false);
webView.onPause();
}
代码示例来源:origin: delight-im/Android-AdvancedWebView
@SuppressLint("NewApi")
@SuppressWarnings("all")
public void onPause() {
pauseTimers();
if (Build.VERSION.SDK_INT >= 11) {
super.onPause();
}
}
代码示例来源:origin: limedroid/XDroid
@Override
protected void onPause() {
super.onPause();
if (webView != null) webView.onPause();
}
代码示例来源:origin: limedroid/XDroidMvp
@Override
protected void onPause() {
super.onPause();
if (webView != null) webView.onPause();
}
代码示例来源:origin: syncthing/syncthing-android
@Override
public void onPause() {
mWebView.onPause();
mWebView.pauseTimers();
super.onPause();
}
代码示例来源:origin: stackoverflow.com
public void onPause() {
super.onPause();
mWebView.onPause();
代码示例来源:origin: evernote/evernote-sdk-android
@Override
public void onPause() {
super.onPause();
mWebView.onPause();
}
代码示例来源:origin: tangqi92/BuildingBlocks
@Override
protected void onPause() {
if (mWebView != null) mWebView.onPause();
super.onPause();
}
代码示例来源:origin: HelloChenJinJun/TestChat
@Override
protected void onPause() {
super.onPause();
display.onPause();
}
代码示例来源:origin: laotan7237/EasyReader
@Override
protected void onPause() {
super.onPause();
webView.onPause();
}
代码示例来源:origin: burgessjp/GanHuoIO
@Override
public void onPause() {
super.onPause();
if (mWebView != null)
mWebView.onPause();
}
代码示例来源:origin: XunMengWinter/Now
@Override
protected void onPause() {
mWebView.onPause();
super.onPause();
}
内容来源于网络,如有侵权,请联系作者删除!