# `Mob.Plugins.Lifecycle`
[🔗](https://github.com/genericjam/mob/blob/master/lib/mob/plugins/lifecycle.ex#L1)

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`.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
