android.webkit.WebView.onWindowFocusChanged()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中android.webkit.WebView.onWindowFocusChanged()方法的一些代码示例,展示了WebView.onWindowFocusChanged()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.onWindowFocusChanged()方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:onWindowFocusChanged

WebView.onWindowFocusChanged介绍

暂无

代码示例

代码示例来源:origin: facebook/facebook-android-sdk

@Override
  public void onWindowFocusChanged(boolean hasWindowFocus) {
    try {
      super.onWindowFocusChanged(hasWindowFocus);
    } catch (NullPointerException e) {
    }
  }
};

代码示例来源:origin: multidots/android-app-common-tasks

@Override
  public void onWindowFocusChanged(boolean hasWindowFocus) {
    try {
      super.onWindowFocusChanged(hasWindowFocus);
    } catch (NullPointerException e) {
      // Catch null pointer exception
    }
  }
}

代码示例来源:origin: multidots/android-app-common-tasks

@Override
  public void onWindowFocusChanged(boolean hasWindowFocus) {
    try {
      super.onWindowFocusChanged(hasWindowFocus);
    } catch (NullPointerException e) {
      // Catch null pointer exception
    }
  }
}

代码示例来源:origin: square1-io/rich-text-android

@Override
  public void onWindowFocusChanged(boolean hasWindowFocus) {
    try {
      super.onWindowFocusChanged(hasWindowFocus);
    } catch (NullPointerException e) {
    }
  }
};

代码示例来源:origin: vbier/habpanelviewer

@Override
public void onWindowFocusChanged(boolean hasFocus) {
  super.onWindowFocusChanged(hasFocus);
  if (hasFocus) {
    postDelayed(() -> setSystemUiVisibility(
        (mImmersive ? View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
            | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
            | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
            | View.SYSTEM_UI_FLAG_FULLSCREEN
            | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY : 0)), 500);
  }
}

相关文章

WebView类方法