onForegroundGained method
void
onForegroundGained()
It means, for example, that the user switched back to your app or turned the device's screen back on while your widget was visible.
Implementation
void onForegroundGained() {}