語言

WallpaperManager.ClearWallpaperOffsets(IBinder) 方法

定義

透過 setWallpaperOffsets(IBinder, float, float) 清除先前與此視窗相關的偏移量。

[Android.Runtime.Register("clearWallpaperOffsets", "(Landroid/os/IBinder;)V", "GetClearWallpaperOffsets_Landroid_os_IBinder_Handler")]
public virtual void ClearWallpaperOffsets(Android.OS.IBinder? windowToken);
[<Android.Runtime.Register("clearWallpaperOffsets", "(Landroid/os/IBinder;)V", "GetClearWallpaperOffsets_Landroid_os_IBinder_Handler")>]
abstract member ClearWallpaperOffsets : Android.OS.IBinder -> unit
override this.ClearWallpaperOffsets : Android.OS.IBinder -> unit

參數

windowToken
IBinder

IBinder:這些偏移應該關聯的視窗,由 View.getWindowToken() 回傳。

屬性

備註

透過 setWallpaperOffsets(IBinder, float, float) 清除先前與此視窗相關的偏移量。 這會讓視窗回復預設狀態,不會讓桌布從上次偏移的狀態捲動。

Android 參考資料。android.app.WallpaperManager.clearWallpaperOffsets

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於