blob: a3826530bde56370c21a0f682aef722ac98bd037 [file] [log] [blame] [view]
# module library
*[<Null safety>](https://dart.dev/null-safety)*
<p>A collection of utilities simplifying module interactions</p>
## Classes
##### [Intent](../package-fuchsia_modular_module/Intent-class.md)
An <a href="../package-fuchsia_modular_module/Intent-class.md">Intent</a> is a fundamental building block of module development.
Modules will either be started with an intent or will receive an
intent after they have been launched. It is up to the module author
to decide how to respond to the intents that they receive.
##### [Module](../package-fuchsia_modular_module/Module-class.md)
The <a href="../package-fuchsia_modular_module/Module-class.md">Module</a> class provides a mechanism for module authors
to interact with the underlying framework. The main responsibilities
of the <a href="../package-fuchsia_modular_module/Module-class.md">Module</a> class are to implement the intent handler
interface and the lifecycle interface.
## Exceptions / Errors
##### [ModuleStateException](../package-fuchsia_modular_module/ModuleStateException-class.md)
An <code>Exception</code> indicating that the Module is in an
invalid state. This exception should only be thrown when
the module is in a state which is cannot recover from and
will need to crash.