Wallpaper Events

There are two events used for making Live Wallpapers.

Wallpaper Config

This event runs whenever a setting for the wallpaper is changed in the companion app.

You get the updated wallpaper settings in the wallpaper_config variable.

wallpaper_config

This variable is a struct containing your sections. Each section is a struct containing the options and sections within that section.

To access an option from this struct, you would use this syntax: 

wallpaper_config.section_name.option_name

Or, when using nested sections: 

wallpaper_config.section1_name.section2_name.option_name

Here is an example using the same settings defined on the wallpaper_set_config page: 

var _new_colour = wallpaper_config.colours.blendColor;
obj_clock.colour = _new_colour;

Wallpaper Subscription Data

This event is triggered when information is received on a metric that you are subscribed to. For details on what is included in this event, see Receiving Metrics.