WallpaperService.Engine.SetOffsetNotificationsEnabled(Boolean) 方法

定義

控制當背景圖案捲動時,此桌布是否會收到通知。

[Android.Runtime.Register("setOffsetNotificationsEnabled", "(Z)V", "GetSetOffsetNotificationsEnabled_ZHandler")]
public virtual void SetOffsetNotificationsEnabled (bool enabled);
[<Android.Runtime.Register("setOffsetNotificationsEnabled", "(Z)V", "GetSetOffsetNotificationsEnabled_ZHandler")>]
abstract member SetOffsetNotificationsEnabled : bool -> unit
override this.SetOffsetNotificationsEnabled : bool -> unit

參數

enabled
Boolean

桌布是否想要接收位移通知

屬性

備註

控制當背景圖案捲動時,此桌布是否會收到通知。 根據預設,雖然預設靜態影像背景圖案不會收到通知。 這是將這個設定為 false 的效能優化。

android.service.wallpaper.WallpaperService.Engine.setOffsetNotificationsEnabled(boolean)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於