Skip to main content
Emitted by Omni when the value of one or more document controls on an embedded app changes after the app loads. Use this to keep your own interface in sync with an app’s document controls.

Payload

Properties

object
Each document control’s value after the change, as an object of control ID to value, in the same shape omni.controls reports. The control values Omni reports when the app first loads are the baseline and aren’t reported as a change.
array
What differs from the previous values. One entry per changed control.

Example

Someone picks Levi in an app’s brand control:
A value from controls can be sent back in app:set-controls as-is. Refer to Consuming events for the full listener setup, including origin checks.