custom_share_platform_interface library
Defines the platform interface for the custom_share plugin.
This file specifies the contract for platform-specific implementations
of the custom_share plugin, allowing text and file sharing on Android and iOS.
Platform implementations (e.g., MethodChannelCustomShare) must override
the static methods shareText
and shareFile
.
Example:
CustomSharePlatform.instance = MethodChannelCustomShare();
final result = await CustomSharePlatform.shareText(text: 'Hello!');
Classes
- An abstract class defining the interface for sharing content on different platforms.