# Application Events
In this part, events from app_events.js
file are documented. See Notes section below.
# Ti.App.fireEvent('pause')
Pauses the Impact application.
This listener handles this event by setting global variable 'pause' to true and 'resume' to false. Then sends stats with 'deactivate' keyword, but there are no further explanations about what sendStats function does with 'deactivate' keyword.
Example:
Ti.App.fireEvent('pause')
# Ti.App.fireEvent('resume')
Resumes the Impact application. It first fires openExtURL event with same parameters, then sets 'resume' to true.
Example:
Ti.App.fireEvent('resume', {
pauseDate: 'myPauseDate',
index: 0
})
pauseDate
- Last pause date. If the difference between now and this is above 10 minutes, then a login window is opened.index
- index of the to-be-played video. This parameter will be used only if playlistMode is true.
# Ti.App.fireEvent('openNavigation')
Opens navigation on map with source and destination addresses.
If it cannot open with Google Maps, then it tries with Apple Maps.
If sourceAddress
is null, then the respective URL will be created with only destinationAddress
parameter.
Example:
Ti.App.fireEvent('openNavigation', {
sourceAddress: 'mySource',
destinationAddress: 'myDestination'
})
sourceAddress
- Start address of the navigation.destinationAddress
- End address of the navigation.
# Ti.App.fireEvent('openExtURL')
Handles following situations with launchOptions of the application:
- Handles
oauthCallBack
with oAuth code. - Handles link with the respective operations. (
launchFileWithKeyword
,getUDID
,meeting
,approveEvent
,barcode
,startCall
). - Handles callBacks with launch or readFromClipboard actions.
Example:
Ti.App.fireEvent('openExtURL', { e })
# Ti.App.fireEvent('initiateQuickStart')
Shortcut event to start a Quick Start Call.
Ti.App.fireEvent('initiateQuickStart')