Available also on: Delphi | .NET | Java | ActiveX.
Interface for objects that receive viewer subscription notifications.
# Python class IGIS_Subscribe:
| Name | Visibility | Description | |
|---|---|---|---|
| SubscribedEvent | public | Handles a viewer subscription notification. | |
PURPOSE: Implement this interface in controls or helper objects that need to react to viewer state changes and refresh their own presentation or cached information.
BEHAVIOR: Subscribers receive notifications through SubscribedEvent with the sender, event identifier, and optional context object supplied by the viewer. This interface is used by components such as TGIS_ControlLegend and TGIS_ControlScale.
USAGE: Implement the callback and subscribe the object to the viewer.
subscriber = CustomSubscriber() viewer.Subscribe(subscriber)