This is really no way to be notified of this event, but you can check it through FPMISystem.getMode()