Mob.Plugins.Lifecycle (mob v0.7.0)

Copy Markdown View Source

Dispatches OS foreground/background transitions to the tier-4 plugins' lifecycle.on_resume / lifecycle.on_background hooks.

Subscribes to Mob.Device's :app events and, on :did_become_active / :did_enter_background, invokes each plugin's corresponding MFA. A plugin that didn't declare a hook is simply skipped. Supervised by Mob.Plugins.Supervisor.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(arg)

@spec start_link(term()) :: GenServer.on_start()