WallpaperService.OnCreateEngine 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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.Enginenull實例。
- 屬性
備註
Java 文件 android.service.wallpaper.WallpaperService.onCreateEngine()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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
壁紙內容要顯示在新引擎實例中。
傳回
是渲染給定桌布內容的引擎,或者 null 是無法建立引擎時。
- 屬性
備註
建立一個新的引擎實例來顯示給定的桌布內容。 請參閱 OnCreateEngine()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。