Skip to content

Releases: deckameron/Ti.Android.Share

v1.0.3

Choose a tag to compare

@deckameron deckameron released this 02 Jan 12:46

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

Choose a tag to compare

@deckameron deckameron released this 01 Jan 12:30

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

Choose a tag to compare

@deckameron deckameron released this 01 Jan 12:20

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

Choose a tag to compare

@deckameron deckameron released this 31 Dec 20:21
  • 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