-
-
Notifications
You must be signed in to change notification settings - Fork 126
Add Wallpapers
Lumiq Creative edited this page Jul 7, 2020
·
5 revisions
Frames can fetch wallpaper data from a JSON file.
New to JSON?
Read the tutorial to get started.
A parent array houses wallpaper objects, which require two key–value pairs: name
and url
. Seven more are accepted.
[
{
"name": "First Wallpaper",
"url": "https://www.example.com/first-wallpaper.png"
},
{
"name": "Second Wallpaper",
"url": "https://www.example.com/second-wallpaper.png"
},
{
"name": "Third Wallpaper",
"url": "https://www.example.com/third-wallpaper.png"
}
]
Wallpaper objects accept nine key–value pairs in total.
Key | Data Type | Definition | Notes |
---|---|---|---|
name |
String | Wallpaper Name | |
url |
String | Wallpaper Image | Direct URL |
author
|
String | Wallpaper Author | |
thumbnail
|
String | Thumbnail Image | Direct URL |
collections
|
String | Collections to Include In | Comma-Separated List |
downloadable
|
Boolean | Allows Downloading | |
size
|
Integer | File Size in Bytes | |
dimensions
|
String | Image Resolution | |
copyright
|
String | Licensing Information |
Upload your JSON file online and obtain a direct URL to it. Overwrite the value of json_url
in /app/src/main/res/values/dashboard_setup.xml.
<string name="json_url">https://jahir.dev/frames/frames.json</string>
Copyright 2022 by Jahir Fiquitiva. This work is licensed under the CreativeCommons Attribution-ShareAlike 4.0 International License.