public interface HomeStructureListener
Told when the home graph moves – an accessory added, removed, renamed, moved between rooms, or its reachability changing.
Register with
SmartHome.addStructureListener(HomeStructureListener).
Deliveries arrive on the EDT, so a listener may touch components directly.
This is about topology, not values. A light being switched on is not a
structure change; subscribe to Trait.ON_OFF for that.
Methods
public abstract void structureChanged(HomeStructureEvent event) | The home graph moved. |
Method details
structureChanged
public abstract void structureChanged(HomeStructureEvent event)The home graph moved. Re-fetch what the event says is stale.
Parameters
eventHomeStructureEvent- what changed, never
null