When the window becomes inactive
Represents an event function that is called when the window becomes inactive.
Note that this event can also occur if the window is already inactive (there is no guarantee that it will occur completely onActivate → onDeactivate → onActivate → ……).
Please note that on Android, after being inactive, the process may be terminated without returning.