Protected
_nativeProtected
Abstract
createProtected
preProtected
addProtected
addIOSPropsShares a text.
import Share from '@smartface/native/share';
Share.shareText("Hello from '@smartface/native'", myPage, [Share.ios.Twitter, Share.ios.Facebook]);
shareText
0.1
Optional
blacklist: string[]Shares an image.
import Share from '@smartface/native/share';
import Image from '@smartface/native/ui/image';
var image = Image.createFromFile('path to the image');
Share.shareImage(image, myPage, []);
shareImage
0.1
Optional
blacklist: string[]Shares a file.
import Share from '@smartface/native/share';
import File from '@smartface/native/io/file';
var file = new File({path: 'path to the file'});
Share.shareFile(file, myPage, []);
shareFile
0.1
Optional
blacklist: string[]Optional
fileSpecifies vCard file name. Defaults to Contacts
Shares file, image & text.
import Share from '@smartface/native/share';
import File from '@smartface/native/io/file';
var myPage = this; // in page scope
var file = new File({
path: 'assets://yourFile.pdf'
});
var image = Image.createFromFile("images://smartface.png");
var text = "Hello from Smartface";
Share.share({ items: [text, file, image] , page: myPage, blacklist: [Share.ios.Twitter, Share.ios.Facebook]});
share
4.0.2
Generated using TypeDoc
Static
Since
0.1
Share allows sending a text, an image or a file over other apps on the device. Blacklist works for iOS only.