Rho.Dyn.Screens.Mob (rho v0.1.0)

Copy Markdown View Source

Mob screens as Dyn screens (config :rho, :dyn, screens: Rho.Dyn.Screens.Mob, see Rho.Dyn.Screens):

  • a screen is a module that use Mob.Screens and defines mount/3; its mount/3 is wrapped to register the screen process with the Keeper (mob's router runs each screen in a process of its own);
  • its selftest mounts it on an empty socket (with a placeholder size class) and renders it: render/1 must return a view tree (%{type: atom, children: [...]} all the way down);
  • mob's router calls the :after_first_render hook after the first frame; Mob.Device's :app events :will_resign_active, :did_enter_background and :will_terminate mean the user left.