attachment_engine_platform_interface 0.0.1-dev.1 copy "attachment_engine_platform_interface: ^0.0.1-dev.1" to clipboard
attachment_engine_platform_interface: ^0.0.1-dev.1 copied to clipboard

Common platform interface for attachment_engine defining the pure-Dart contract for platform-specific implementations to satisfy.

attachment_engine_platform_interface #

pub package license

A common platform interface for the attachment_engine plugin.

This package defines the pure-Dart platform interface contract that platform-specific implementation packages (attachment_engine_android, attachment_engine_ios, attachment_engine_macos, attachment_engine_windows, attachment_engine_linux, attachment_engine_web) must implement.

Usage #

To use the attachment engine in your application, depend directly on attachment_engine instead:

dependencies:
  attachment_engine: ^0.0.1-dev.1

Implementing a Platform Package #

Platform package authors can extend AttachmentEnginePlatform to register a new platform backend:

import 'package:attachment_engine_platform_interface/attachment_engine_platform_interface.dart';

class AttachmentEngineMyPlatform extends AttachmentEnginePlatform {
  static void registerWith() {
    AttachmentEnginePlatform.instance = AttachmentEngineMyPlatform();
  }
  
  // Implement interface methods...
}

For more details, see the main attachment_engine repository.

0
likes
160
points
153
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Common platform interface for attachment_engine defining the pure-Dart contract for platform-specific implementations to satisfy.

Repository (GitHub)
View/report issues
Contributing

Topics

#attachment #platform-interface

License

MIT (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on attachment_engine_platform_interface