Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Use the native UIDocumentMenuViewController in Titanium and Hyperloop.

Notifications You must be signed in to change notification settings

hansemannn/titanium-ios-document-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanium iOS Document Picker

Use the native UIDocumentMenuViewController in Titanium and Hyperloop.

Example

import TiDocumentPicker from 'titanium-document-picker';

const win = Ti.UI.createWindow({
  backgroundColor: '#fff'
});

var btn = Ti.UI.createButton({
  title: 'Select Document'
});

btn.addEventListener('click', () => {
  TiDocumentPicker.show({
    utis: ['com.adobe.pdf'],
    select: (urls) => {
      Ti.API.info(urls);
    },
    cancel: () => {},
    // Only for iPad
    sourceView: btn
  });
});

win.add(btn);
win.open();

License

MIT

Author

Hans Knöchel

About

Use the native UIDocumentMenuViewController in Titanium and Hyperloop.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published