Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hyperloop-modules/titanium-cloudsharing

Open more actions menu

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.