android.service.wallpaper.WallpaperService.onDestroy()方法的使用及代码示例

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

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

WallpaperService.onDestroy介绍

暂无

代码示例

代码示例来源:origin: novoda/android-demos

  1. @Override
  2. public void onDestroy() {
  3. super.onDestroy();
  4. }

代码示例来源:origin: novoda/android-demos

  1. @Override
  2. public void onDestroy() {
  3. super.onDestroy();
  4. }

代码示例来源:origin: libgdx/libgdx

  1. /** Service is dying, and will not be used again. You have to finish execution off all living threads there or short after
  2. * there, besides the new wallpaper service wouldn't be able to start. */
  3. @Override
  4. public void onDestroy () {
  5. if (DEBUG) Log.d(TAG, " > AndroidLiveWallpaperService - onDestroy() " + hashCode());
  6. Log.i(TAG, "service destroyed");
  7. super.onDestroy(); // can call engine.onSurfaceDestroyed, must be before bellow code:
  8. if (app != null) {
  9. app.onDestroy();
  10. app = null;
  11. view = null;
  12. }
  13. }

代码示例来源:origin: libgdx/libgdx

  1. /** Service is dying, and will not be used again. You have to finish execution off all living threads there or short after
  2. * there, besides the new wallpaper service wouldn't be able to start. */
  3. @Override
  4. public void onDestroy () {
  5. if (DEBUG) Log.d(TAG, " > AndroidLiveWallpaperService - onDestroy() " + hashCode());
  6. Log.i(TAG, "service destroyed");
  7. super.onDestroy(); // can call engine.onSurfaceDestroyed, must be before bellow code:
  8. if (app != null) {
  9. app.onDestroy();
  10. app = null;
  11. view = null;
  12. }
  13. }

代码示例来源:origin: xia-weiyang/MainScreenShow

  1. @Override
  2. public void onDestroy() {
  3. super.onDestroy();
  4. engine = null;
  5. }

代码示例来源:origin: Drippler/drip-steps

  1. @Override
  2. public void onDestroy() {
  3. PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).unregisterOnSharedPreferenceChangeListener(this);
  4. ex.shutdown();
  5. super.onDestroy();
  6. }

代码示例来源:origin: markusfisch/ShaderEditor

  1. @Override
  2. public void onDestroy() {
  3. super.onDestroy();
  4. enableComponent(batteryLevelComponent, false);
  5. }

相关文章