WallpaperManager.SetWallpaperOffsets(IBinder, Single, Single) Method

Definition

Set the display position of the current wallpaper within any larger space, when that wallpaper is visible behind the given window.

[Android.Runtime.Register("setWallpaperOffsets", "(Landroid/os/IBinder;FF)V", "GetSetWallpaperOffsets_Landroid_os_IBinder_FFHandler")]
public virtual void SetWallpaperOffsets (Android.OS.IBinder? windowToken, float xOffset, float yOffset);
[<Android.Runtime.Register("setWallpaperOffsets", "(Landroid/os/IBinder;FF)V", "GetSetWallpaperOffsets_Landroid_os_IBinder_FFHandler")>]
abstract member SetWallpaperOffsets : Android.OS.IBinder * single * single -> unit
override this.SetWallpaperOffsets : Android.OS.IBinder * single * single -> unit

Parameters

windowToken
IBinder

The window who these offsets should be associated with, as returned by android.view.View#getWindowToken() View.getWindowToken().

xOffset
Single

The offset along the X dimension, from 0 to 1.

yOffset
Single

The offset along the Y dimension, from 0 to 1.

Attributes

Remarks

Set the display position of the current wallpaper within any larger space, when that wallpaper is visible behind the given window. The X and Y offsets are floating point numbers ranging from 0 to 1, representing where the wallpaper should be positioned within the screen space. These only make sense when the wallpaper is larger than the display.

Java documentation for android.app.WallpaperManager.setWallpaperOffsets(android.os.IBinder, float, float).

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