initialSetup
messageExample InitialSetup response
{
"...": "...",
"widgets": [
{ "id": "rmf" },
{ "id": "nextSteps" },
{ "id": "favorites" },
{ "id": "privacyStats" }
],
"widgetConfigs": [
{ "id": "favorites", "visibility": "visible" },
{ "id": "privacyStats", "visibility": "visible" }
],
"settings": {
"customizerDrawer": {
"state": "enabled",
"autoOpen": false
}
},
"customizer": {
"userImages": [],
"userColor": null,
"theme": "dark",
"background": { "kind": "default" }
}
}
customizer
to initialSetup
initialSetup
{
"...": "...",
"customizer": {
"userImages": [],
"userColor": null,
"theme": "dark",
"background": { "kind": "default" }
}
}
customizer_onBackgroundUpdate
.
{
"background": { "kind": "color", "value": "color01" }
}
{
"background": { "kind": "gradient", "value": "gradient01" }
}
{
"background": { "kind": "hex", "value": "#cacaca" }
}
{
"background": { "kind": "default" }
}
{
"background": {
"kind": "userImage",
"value": { "id": "abc", "src": "...", "thumb": "...", "colorScheme": "light" }
}
}
customizer_onBackgroundUpdate
above{
"userImages": [{"id": "abc", "src": "...", "thumb": "...", "colorScheme": "light" }]
}
{
"userColor": { "kind": "hex", "value": "#cacaca" }
}
or:{
"userColor": null
}
{
"theme": "system"
}
{
"background": { "kind": "color", "value": "color01" }
}
{
"theme": "light"
}
{
"id": "abc"
}
{
"target": "userImage",
"id": "01"
}