Function OnMainWidgetChange.onMainWidgetChange

abstract void onMainWidgetChange(
  Window window,
  Widget previous,
  Widget newWidget
);