workmanager_platform_interface 0.9.1+1
workmanager_platform_interface: ^0.9.1+1 copied to clipboard
A common platform interface for the workmanager plugin.
workmanager_platform_interface #
A common platform interface for the workmanager
plugin.
Description #
This package provides the common platform interface for the workmanager plugin, defining the API contract that platform-specific implementations must follow. It ensures consistency across different platform implementations.
Usage #
This interface is only relevant for packages that implement workmanager
for a specific platform. App developers should use the main workmanager
package instead.
To implement a new platform-specific implementation of workmanager
, extend
WorkmanagerPlatform
with an implementation that performs the
platform-specific behavior, and when you register your plugin, set the default
WorkmanagerPlatform
by calling
WorkmanagerPlatform.instance = MyWorkmanagerPlatform()
.
Note on Breaking Changes #
Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.
See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.
Documentation #
For detailed API documentation and usage examples, please refer to the main workmanager
package documentation.