Skip to content

hyperloop-modules/titanium-cloudsharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Ti.CloudSharing

Use the iOS 10+ UICloudSharingController in Appcelerator Titanium.

Run the Sample

  1. Copy the ti.cloudsharing folder to your lib/ (Alloy) or your Resources (Classic) directory
  2. Copy the example code to your Titanium app
  3. Go for it!

Example

var CloudSharing = require('ti.cloudsharing');

var window = Ti.UI.createWindow({
  backgroundColor: '#fff'
});

var btn = Ti.UI.createButton({
  title: 'Show message!'
});

btn.addEventListener('click', function() {
  var cloudItem = CloudSharing.createShareItem({
    filename: 'titanium.png',
    label: 'Titanium Logo',
    type: 'com.appcelerator.cloudsharing'
  });
  
  CloudSharing.openShareDialog({
    item: cloudItem,
    permissions: [CloudSharing.PERMISSION_ALLOW_PUBLIC, CloudSharing.PERMISSION_ALLOW_READ_ONLY]
  });
});

window.add(btn);
window.open();

License

MIT

Copyright

© 2017 by Appcelerator

About

Use the UICloudSharingController with Hyperloop in Titanium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published