Język

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

The horizontal offset of the wallpaper.

yOffset
Single

The vertical offset of the wallpaper.

xOffsetStep
Single

The horizontal offset step between positions.

yOffsetStep
Single

The vertical offset step between positions.

xPixelOffset
Int32

The horizontal offset, in pixels.

yPixelOffset
Int32

The vertical offset, in pixels.

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