Partager via


WallpaperService.Engine.OnOffsetsChanged Method

Definition

Called to inform you of the wallpaper's offsets changing within its contain, corresponding to the container's call to WallpaperManager#setWallpaperOffsets(IBinder, float, float) WallpaperManager.setWallpaperOffsets().

[Android.Runtime.Register("onOffsetsChanged", "(FFFFII)V", "GetOnOffsetsChanged_FFFFIIHandler")]
public virtual void OnOffsetsChanged (float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset);
[<Android.Runtime.Register("onOffsetsChanged", "(FFFFII)V", "GetOnOffsetsChanged_FFFFIIHandler")>]
abstract member OnOffsetsChanged : single * single * single * single * int * int -> unit
override this.OnOffsetsChanged : single * single * single * single * int * int -> unit

Parameters

xOffset
Single
yOffset
Single
xOffsetStep
Single
yOffsetStep
Single
xPixelOffset
Int32
yPixelOffset
Int32
Attributes

Remarks

Called to inform you of the wallpaper's offsets changing within its contain, corresponding to the container's call to WallpaperManager#setWallpaperOffsets(IBinder, float, float) WallpaperManager.setWallpaperOffsets().

Java documentation for android.service.wallpaper.WallpaperService.Engine.onOffsetsChanged(float, float, float, float, int, int).

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