lifecycle_guard_platform_interface 1.0.1 copy "lifecycle_guard_platform_interface: ^1.0.1" to clipboard
lifecycle_guard_platform_interface: ^1.0.1 copied to clipboard

Platform interface for lifecycle_guard - defines the contract for background execution.

🧩 lifecycle_guard_platform_interface #

The common interface contract for mission-critical background execution.

This package defines the glue that holds lifecycle_guard together across all platforms.

GitHub pub version


🚀 Purpose #

This is a Platform Interface package as defined by the Federated Plugins architecture.

It defines the LifecycleGuardPlatform abstract class that all platform-specific implementations (like lifecycle_guard_android and lifecycle_guard_ios) must implement.

Why separate the interface? #

  1. Strong Typing: Ensures all platforms follow the exact same API.
  2. Extensibility: Community members can add support for Windows, Linux, or Web just by implementing this interface.
  3. Stability: Changes to the main app-facing package don't break the native implementations.

🛠️ For Contributors #

If you want to add support for a new platform:

  1. Create a new package (e.g., lifecycle_guard_windows).
  2. Depend on this package.
  3. Extend LifecycleGuardPlatform.
  4. Register your implementation.

📄 License #

BSD 3-Clause License — see LICENSE for details.


Built with ❤️ by Crealify

5
likes
0
points
178
downloads

Publisher

unverified uploader

Weekly Downloads

Platform interface for lifecycle_guard - defines the contract for background execution.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on lifecycle_guard_platform_interface