# PDF Sender Events
These events are in pdfSender.js file.
# Ti.App.fireEvent('sendDocs')
Checks if session is active and opens content chooser for sending the documents.
Example:
Ti.App.fireEvent('sendDocs', {})
# Ti.App.fireEvent('chooseFavorites')
Opens a native list that holds recently viewed and favorite documents.
Example:
Ti.App.fireEvent('chooseFavorites', {})
# Ti.App.fireEvent('sendPickingContent')
Used for sending content with email options. Content can be video, presentation or pdf. Please see parameters for the changes.
Example:
Ti.App.fireEvent('sendPickingContent', {
via: 1,
sourceView: 'PDF',
success: true,
fileIDs: [id0, id1, ...]
})
via- 3 -> sends content over external browser, opening gmail.com. 2 -> sends content over an email popup. 1 -> same with 2, used for connect.sourceView- ifPDFand via is 1 or 2, then email popup is opened in modal. Else, it will be opened in mainWebView.success- if true and via is 1, stats are sent.fileIDs- to be sent files. Files can be video, presentation or pdf.dontOpenURL- works only when via is 3, and when set to true email app will not be openedcallBack- works only when via is 3, and when set zero drive link will be passed to the web view as a string argumentsource- define the targeted webview, used when via is 3- accepted values:
modal,postcall,precall(modalWebView),homescreen(mainWebView),sfdcWebView(sfdcWebView),popover(initPopover.webview),''(blank, currentPage's webview)
- accepted values: