WallpaperService.OnCreateEngine 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| OnCreateEngine() |
必须实现才能返回壁纸引擎的新实例。 |
| OnCreateEngine(WallpaperDescription) |
创建一个新的引擎实例以显示给定的壁纸内容。 |
OnCreateEngine()
必须实现才能返回壁纸引擎的新实例。
[Android.Runtime.Register("onCreateEngine", "()Landroid/service/wallpaper/WallpaperService$Engine;", "GetOnCreateEngineHandler")]
public abstract Android.Service.Wallpaper.WallpaperService.Engine? OnCreateEngine();
[<Android.Runtime.Register("onCreateEngine", "()Landroid/service/wallpaper/WallpaperService$Engine;", "GetOnCreateEngineHandler")>]
abstract member OnCreateEngine : unit -> Android.Service.Wallpaper.WallpaperService.Engine
返回
壁纸 WallpaperService.Engine的新实例。
- 特性
注解
Java文档android.service.wallpaper.WallpaperService.onCreateEngine()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
OnCreateEngine(WallpaperDescription)
创建一个新的引擎实例以显示给定的壁纸内容。
[Android.Runtime.Register("onCreateEngine", "(Landroid/app/wallpaper/WallpaperDescription;)Landroid/service/wallpaper/WallpaperService$Engine;", "GetOnCreateEngine_Landroid_app_wallpaper_WallpaperDescription_Handler", ApiSince=36)]
public virtual Android.Service.Wallpaper.WallpaperService.Engine? OnCreateEngine(Android.App.Wallpaper.WallpaperDescription description);
[<Android.Runtime.Register("onCreateEngine", "(Landroid/app/wallpaper/WallpaperDescription;)Landroid/service/wallpaper/WallpaperService$Engine;", "GetOnCreateEngine_Landroid_app_wallpaper_WallpaperDescription_Handler", ApiSince=36)>]
abstract member OnCreateEngine : Android.App.Wallpaper.WallpaperDescription -> Android.Service.Wallpaper.WallpaperService.Engine
override this.OnCreateEngine : Android.App.Wallpaper.WallpaperDescription -> Android.Service.Wallpaper.WallpaperService.Engine
参数
- description
- WallpaperDescription
要显示在新引擎实例中的壁纸内容。
返回
将呈现给定壁纸内容的引擎。
- 特性
注解
创建一个新的引擎实例以显示给定的壁纸内容。 另请参阅 OnCreateEngine()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。