本文整理汇总了Java中android.service.wallpaper.WallpaperService.Engine方法的典型用法代码示例。如果您正苦于以下问题:Java WallpaperService.Engine方法的具体用法?Java WallpaperService.Engine怎么用?Java WallpaperService.Engine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.service.wallpaper.WallpaperService
的用法示例。
在下文中一共展示了WallpaperService.Engine方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
@Override
public WallpaperService.Engine onCreateEngine() {
if (engine!=null) {
// engine.painting.stopPainting();
Log.e(TAG, "DOUBLE ENGINEsss?");
engine = null;
}
engine = new AwesomeWallpaperEngine();
return engine;
}
示例2: onCreateEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
@Override
public WallpaperService.Engine onCreateEngine()
{
Log.v(LOG_TAG, "package_name: " + getPackageName());
Defines.packageName = getPackageName();
puvoWallpaperRenderer = new PuvoWallpaperRenderer();
return new PuvoWallpaperEngine(puvoWallpaperRenderer);
}
示例3: getEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
public WallpaperService.Engine getEngine() {
return mWallpaperEngine;
}
示例4: setEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
public void setEngine(WallpaperService.Engine engine) {
this.mWallpaperEngine = engine;
}
示例5: getEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
public WallpaperService.Engine getEngine() {
return mWallpaperEngine;
}
示例6: setEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
public void setEngine(WallpaperService.Engine engine) {
this.mWallpaperEngine = engine;
}
示例7: onCreateEngine
import android.service.wallpaper.WallpaperService; //导入方法依赖的package包/类
public WallpaperService.Engine onCreateEngine() {
return new Wallpaper.Engine();
}