1 package com.android.wallpaper.picker.data
2 
3 import android.app.WallpaperManager.FLAG_LOCK
4 import android.app.WallpaperManager.FLAG_SYSTEM
5 
6 enum class Destination(val value: Int) {
7     /** Depicts when the current wallpaperModel object is not a currently applied wallpaper */
8     NOT_APPLIED(0),
9 
10     /**
11      * Depicts when the current wallpaperModel object is equivalent to FLAG_SYSTEM#WallpaperManager
12      * and the wallpaperModel describes a wallpaper that's only applied on the homescreen
13      */
14     APPLIED_TO_SYSTEM(FLAG_SYSTEM),
15 
16     /**
17      * Depicts when the current wallpaperModel object is equivalent to FLAG_LOCK#WallpaperManager
18      * and wallpapermodel describes a wallpaper that's only applied on the lockscreen
19      */
20     APPLIED_TO_LOCK(FLAG_LOCK),
21 
22     /**
23      * Depicts when the current wallpaperModel object is equivalent to FLAG_LOCK+FLAG_SYSTEM and
24      * wallpapermodel describes a wallpaper that's applied on both lockscreen and homescreen
25      */
26     APPLIED_TO_SYSTEM_LOCK(FLAG_SYSTEM or FLAG_LOCK)
27 }
28