WidgetPage Events
WidgetPage has its own events that you can subscribe to. These events provide an easy way to respond to widget lifecycle changes, user interactions, and updates.
Customization refreshed
C#
CustomizationRefreshed += WidgetPage_CustomizationRefreshed;
- Called every second.
- Check if some settings changed and apply these changes.
Efficiency mode switched
C#
EfficiencyModeSwitched += WidgetPage_EfficiencyModeSwitched;
- Called when efficiency mode switches.
- In efficiency mode (EM), CPU or GPU intensive tasks such as animations or updating data should be made more efficient or stopped completely.
- For example, EM is enabled when widget is fully covered by another window. This feature is used in the Time widget that disables animations when efficiency mode is enabled.
Menu options creation requested
C#
MenuOptionsCreationRequested += WidgetPage_MenuOptionsCreationRequested;
- Called on initialization or when localization is changed.
- Add options to the right-click widget menu.
- Learn more on the Widget Menu page.
Language changed
C#
LanguageChanged += WidgetPage_LanguageChanged;
- Called when the language in the BeWidgets app is changed.