Language

WallpaperService.OnCreateEngine Method

Definition

Overloads

Name Description
OnCreateEngine()

Must be implemented to return a new instance of the wallpaper's engine.

OnCreateEngine(WallpaperDescription)

Creates a new engine instance to show the given wallpaper content.

OnCreateEngine()

Must be implemented to return a new instance of the wallpaper's engine.

[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

Returns

A new instance of the wallpaper's WallpaperService.Engine, or null if the engine cannot be created.

Attributes

Remarks

Java documentation for android.service.wallpaper.WallpaperService.onCreateEngine().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OnCreateEngine(WallpaperDescription)

Creates a new engine instance to show the given wallpaper content.

[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

Parameters

description
WallpaperDescription

The wallpaper content to show in the new engine instance.

Returns

The engine that will render the given wallpaper content, or null if the engine cannot be created.

Attributes

Remarks

Creates a new engine instance to show the given wallpaper content. See also OnCreateEngine().

Java documentation for android.service.wallpaper.WallpaperService.onCreateEngine(android.app.wallpaper.WallpaperDescription).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to