The application may be destroyed soon, save its state for a future on_restore_state

Triggers are platform specific:

  • Android: Activity.onSaveInstanceState
  • iOS: UIApplicationDelegate applicationDidEnterBackground

Property definitions

app $ AppComponent :: on_save_state
	# The application may be destroyed soon, save its state for a future `on_restore_state`
	#
	# Triggers are platform specific:
	# * Android: `Activity.onSaveInstanceState`
	# * iOS: `UIApplicationDelegate applicationDidEnterBackground`
	fun on_save_state do end
lib/app/app_base.nit:92,2--97,25

app :: ui $ App :: on_save_state
	redef fun on_save_state do window.on_save_state
lib/app/ui.nit:87,2--48

app $ CompositeControl :: on_save_state
	redef fun on_save_state do for i in items do i.on_save_state
lib/app/ui.nit:199,2--61