Skip to content

utrillavictor/Share-Module

Repository files navigation

Appcelerator Titanium :: Share

An Appcelerator Titanium module that creates an UIActivityViewController to choose which application will send an email with an attachment.

alt text

Setup

Include the module in your tiapp.xml:


com.vcord.share

Usage

Currently the options you have are limited to images or files, can be used like...


var module = require('com.vcord.share');

var yourFileName = 'your_file.pdf'; // You could also use an image 
var yourAttachmentFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, yourFileName);

module.displayOptions({
    title : 'Email title',
    message : 'Your email body',
    files : [yourAttachmentFile]
}];

  • You can attach as many files you want. Just use a ',' inside the files property.

Install this module

Mac OS X

Copy the distribution zip file into the ~/Library/Application Support/Titanium folder

Linux

Copy the distribution zip file into the ~/.titanium folder

Windows

Copy the distribution zip file into the C:\ProgramData\Titanium folder

About

No description, website, or topics provided.

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published