Loading toruslib/torus-core/src/main/java/com/google/android/torus/core/wallpaper/LiveWallpaper.kt +10 −0 Original line number Original line Diff line number Diff line Loading @@ -197,6 +197,16 @@ abstract class LiveWallpaper : WallpaperService() { return false return false } } /** * Returns the information if the wallpaper is visible. */ fun isVisible(): Boolean { this.wallpaperServiceEngine?.let { return it.isVisible } return false } /** Triggers the [WallpaperService] to recompute the Wallpaper Colors. */ /** Triggers the [WallpaperService] to recompute the Wallpaper Colors. */ fun notifyWallpaperColorsChanged() { fun notifyWallpaperColorsChanged() { this.wallpaperServiceEngine?.notifyColorsChanged() this.wallpaperServiceEngine?.notifyColorsChanged() Loading Loading
toruslib/torus-core/src/main/java/com/google/android/torus/core/wallpaper/LiveWallpaper.kt +10 −0 Original line number Original line Diff line number Diff line Loading @@ -197,6 +197,16 @@ abstract class LiveWallpaper : WallpaperService() { return false return false } } /** * Returns the information if the wallpaper is visible. */ fun isVisible(): Boolean { this.wallpaperServiceEngine?.let { return it.isVisible } return false } /** Triggers the [WallpaperService] to recompute the Wallpaper Colors. */ /** Triggers the [WallpaperService] to recompute the Wallpaper Colors. */ fun notifyWallpaperColorsChanged() { fun notifyWallpaperColorsChanged() { this.wallpaperServiceEngine?.notifyColorsChanged() this.wallpaperServiceEngine?.notifyColorsChanged() Loading