ShareModule class

WebF module for sharing content, text, and images

This module provides functionality to share images, text, save screenshots, and create preview images for display.

Constructors

ShareModule(ModuleManager? moduleManager)

Properties

hashCode int
The hash code for this object.
no setterinherited
moduleManager → ModuleManager?
finalinherited
name String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispatchEvent({Event? event, dynamic data}) → dynamic
inherited
dispose() → void
handleSaveForPreview(NativeByteData snapshot, [String? filename]) Future<ShareSaveResult>
Save screenshot for preview display (temporary file)
handleSaveScreenshot(NativeByteData snapshot, [String? filename]) Future<ShareSaveResult>
Save screenshot to device gallery/downloads
handleShare(NativeByteData snapshot, String text, String subject) Future<bool>
Share an image with optional text and subject.
handleShareText(String title, String text, {String? url}) Future<bool>
Handle text-only sharing
initialize() Future<void>
inherited
invoke(String method, List params) Future
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(NativeByteData imageData, dynamic filename) Future<ShareSaveResult>
saveForPreview(NativeByteData imageData, dynamic filename) Future<ShareSaveResult>
share(NativeByteData imageData, dynamic text, dynamic subject) Future<bool>
shareText(ShareTextOptions? options) Future<bool>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited