Releases: deckameron/Ti.Android.Share
Releases · deckameron/Ti.Android.Share
v1.0.3
Added video sharing support!
// Share video
ShareModule.share({
message: "Watch this!",
subject: "Cool video",
media: "/videos/demo.mp4"
});
// Share video file
const videoFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'video.mp4');
ShareModule.share({
message: "My video",
media: videoFile.read()
});
// Share video from url
ShareModule.share({
message: "Watch this awesome video!",
subject: "Video to share",
media: "https://www.example.com/videos/demo.mp4",
callback: function(e) {
if (e.success) {
Ti.API.info("Video shared successfully!");
} else {
Ti.API.error("Share failed: " + e.message);
}
}
});v1.0.2
Technical Improvements:
- Replaced deprecated AsyncTask with ExecutorService
- Added proper generic types (zero compilation warnings)
- Improved thread safety with Handler for UI callbacks
v1.0.1
Added the possibility to share image from URL.
ShareModule.share({
message: "Check out this amazing photo!",
subject: "Photo from the web",
image: "https://www.example.com/photos/sunset.jpg"
});The module will automatically download the image in the background before sharing. If the download fails, it will share text only (or notify via callback if provided).
v1.0.0
- Share images from Resources, Blobs, or file paths
- Automatic FileProvider URI generation
- Support for text and image combination sharing
- Optional callback to handle share results (success, cancelled, or error)
- Works with WhatsApp, Telegram, Email, and all Android share targets
- Compatible with Titanium SDK 13.x and modern Android versions