1. A state notification apparatus comprising: a hardware processor configured to: hold an identifier of a runtime environment being executed in a foreground when one or more secure runtime environments and one or more non-secure runtime environments are selectively executed in the foreground; determine a state of the runtime environment executed in the foreground based on the held identifier; determine a constant state of the runtime environment when a function that operates across the secure runtime environment and the non-secure runtime environment is executed; and cause a hardware device that cannot be accessed from the one or more non-secure runtime environments to notify the determined state.