# Ti.App All Events
# app.js
- Ti.App.fireEvent('setSessionID') - Sets the session id.
- Ti.App.fireEvent('getSessionID') - Gets the session id.
- Ti.App.fireEvent('setPropPitcher') - Sets a property.
- Ti.App.fireEvent('getPropPitcher') - Gets a property.
- Ti.App.fireEvent('copyCallObjsToCB') - Copies call objects to the clipboard.
- Ti.App.fireEvent('startRecording') - Starts camera recording.
- Ti.App.fireEvent('stopRecording') - Stops camera recording.
- Ti.App.fireEvent('loadNextInGuided') - Loads next step in guide steps.
- Ti.App.fireEvent('crashReport') - Shows an alert.
- Ti.App.fireEvent('renderTodos') - Shows the To-Dos dialog.
- Ti.App.fireEvent('closeTodos') - Closes the opened To-Dos dialog.
- Ti.App.fireEvent('renderKeyInitiatives') - Opens the file with a specific keyword in a new popover.
- Ti.App.fireEvent('closeKeyInitiatives') - Closes newly opened popover.
- Ti.App.fireEvent('setContactIDs') - Sets the contactIDs.
- Ti.App.fireEvent('addFavoriteItem') - Adds a file to the favorites.
- Ti.App.fireEvent('removeFavoriteItem') - Removes the file from the favorites.
- Ti.App.fireEvent('copyToClipboard') - Copies content to the clipboard.
- Ti.App.fireEvent('getPushNotifications') - Retrieves push notifications.
- Ti.App.fireEvent('getContacts') - Retrieves contacts.
- Ti.App.fireEvent('getContentFilterInfo') - Retrieves content filter information.
- Ti.App.fireEvent('getBookmarks') - Retrieves the list of the bookmarks.
- Ti.App.fireEvent('getFavoriteItems') - Retrieves the list of favorite items.
- Ti.App.fireEvent('getLastLaunchedItems') - Retrieves the list of recently opened items.
- Ti.App.fireEvent('getNotes') - Retrieves user's notes.
- Ti.App.fireEvent('searchForTag') - Retrieves files with specific tag.
- Ti.App.fireEvent('getPitcherFile') - Retrieves Pitcher file.
- Ti.App.fireEvent('getPitcherFiles') - Retrieves Pitcher files.
- Ti.App.fireEvent('updateDB') - Updates DB.
- Ti.App.fireEvent('removeContent') - Remove content from DB.
- Ti.App.fireEvent('updateRating') - Updates the rating of a content at DB.
- Ti.App.fireEvent('getContentsOfSession') - Retrieves the contents of the session.
- Ti.App.fireEvent('planCall') - Makes a planned call.
- Ti.App.fireEvent('startCall') - Starts the call.
- Ti.App.fireEvent('startCallWithParameters') - Starts a call with given parameters.
- Ti.App.fireEvent('getSlideDetails') - Retrieves slide details.
- Ti.App.fireEvent('createCalendarEvent') - Creates a calendar event.
- Ti.App.fireEvent('refreshPage') - Refreshes current page.
- Ti.App.fireEvent('searchDB') - Performs a DB search.
- Ti.App.fireEvent('searchPitcherFile') - Searches for Pitcher file.
- Ti.App.fireEvent('getPitcherCode') - Retrieves Pitcher code(platformID).
- Ti.App.fireEvent('getPitcherFolder') - Retrieves path to the Pitcher folder.
- Ti.App.fireEvent('getPresentationContext') - Retrieves presentation context.
- Ti.App.fireEvent('clearScreenshotCache') - Clears screenshot cache.
- Ti.App.fireEvent('takeScreenshotFromSlide') - Takes screenshot from slide.
- Ti.App.fireEvent('takeScreenshotFromModal') - Takes screenshot from modal window.
- Ti.App.fireEvent('launchFileWithID') - Opens file with the fileID.
- Ti.App.fireEvent('launchFileWithKeyword') - Opens file with the fileID.
- Ti.App.fireEvent('sendFile') - Sends file in e-mail.
- Ti.App.fireEvent('updateSShotRemote') - Updates screenshot from remote.
- Ti.App.fireEvent('saveScreenshotsToFile') - Saves screenshots to file.
- Ti.App.fireEvent('mergePDFs') - Merges multiple PDFs.
- Ti.App.fireEvent('getCoordinates') - Retrieves last coordinates.
- Ti.App.fireEvent('showMap') - Shows map.
- Ti.App.fireEvent('setGPS') - Sets GPS to given latitude and longitude values.
- Ti.App.fireEvent('generatePDFfromString') - Generates a PDF file from given HTML string.
- Ti.App.fireEvent('noop') - No operation event.
- Ti.App.fireEvent('refreshCallObject') - Refreshes call object with current account object information.
- Ti.App.fireEvent('resizePZeroOverlay') - Resizes sfPopover if popovers are enabled.
- Ti.App.fireEvent('hidePZeroOverlay') - Hides sfPopover.
- Ti.App.fireEvent('syncHomepage') - Synchronizes home page with CRM.
- Ti.App.fireEvent('showPZeroOverlay') - Shows PZero overlay on a source webview.
- Ti.App.fireEvent('deleteEvent') - Deletes a specific event.
- Ti.App.fireEvent('deleteEvents') - Deletes events happened in a time interval.
- Ti.App.fireEvent('getCallObject') - Retrieves current call object.
- Ti.App.fireEvent('getEvents') - Retrieves events happened in a time interval.
- Ti.App.fireEvent('openInOriginal') - Opens document in default document viewer application.
- Ti.App.fireEvent('sendEmail') - Opens e-mail popover.
- Ti.App.fireEvent('getCameraPhoto') - Retrieves the photo from the camera.
- Ti.App.fireEvent('openPhotoGallery') - Opens image gallery.
- Ti.App.fireEvent('addFileSent') - Adds the file if it is sent to the JSON.
- Ti.App.fireEvent('getFilesSent') - Retrieves sent files.
- Ti.App.fireEvent('addTag') - Adds the tag to the detailed tags.
- Ti.App.fireEvent('getTags') - Retrieves all tags.
- Ti.App.fireEvent('receivedSpeechHypothesis') - Launches or navigates over a slide.
- Ti.App.fireEvent('getChapterName') - Retrieves chapter name of the slide.
- Ti.App.fireEvent('dbFunction') - Opens DB/imports files into DB/executes queries in DB.
- Ti.App.fireEvent('showAlertBox') - Shows an alert box.
- Ti.App.fireEvent('saveCache') - Saves the key value pair to the cache as long as both of them exist.
- Ti.App.fireEvent('getAppConfig') - Retrieves app config.
- Ti.App.fireEvent('parseAllCRMObjects') - Parses all CRM objects.
- Ti.App.fireEvent('downloadFile') - Downloads the requested file(s).
- Ti.App.fireEvent('saveDBPDF') - Saves a portion of DB to a PDF file
- Ti.App.fireEvent('parseLeads') - Parses the leads, namely 'tbl_crm_leads_v2' table.
- Ti.App.fireEvent('showConfirmBox') - Shows confirm box.
- Ti.App.fireEvent('notifyMainPage') - Notifies mainWebView.
- Ti.App.fireEvent('launchExternal') - Launches external browser with given url.
- Ti.App.fireEvent('showShareUI') - Opens Windows share UI to share the given link. (Windows only)
- Ti.App.fireEvent('moveCamera') - Moves camera up or down.
- Ti.App.fireEvent('pitcherWindowOpened') - Makes view arrangement after Pitcher window opened.
- Ti.App.fireEvent('pitcherWindowClosed') - Makes view arrangement after Pitcher window closed.
- Ti.App.fireEvent('openCamera') - Opens the camera to the defined source parameter's webview.
- Ti.App.fireEvent('closeCamera') - Closes the camera in a live meeting.
- Ti.App.fireEvent('checkLaunchExternal') - Checks if one can launch external browser to open an URL.
- Ti.App.fireEvent('scanBarcode') - Scans a barcode via camera.
- Ti.App.fireEvent('manageIcons') - Fired for managing Pitcher icons.
- Ti.App.fireEvent('askQR') - Generates a QR code.
- Ti.App.fireEvent('showHelp') - Shows help on main Pitcher Impact screen.
- Ti.App.fireEvent('sendFileToSFDC') - Sends file to Salesforce as an attachment.
- Ti.App.fireEvent('resyncData') - Re-synchronizes data with Salesforce CRM.
- Ti.App.fireEvent('makeSFFullScreen') - Turns SalesForce screen into full screen.
- Ti.App.fireEvent('getSFUrl') - Retrieves Salesforce URL.
- Ti.App.fireEvent('getSFInfo') - Retrieves the last Salesforce information.
- Ti.App.fireEvent('fixMissingPDFsFromSFDC') - Fixes missing PDFs from SFDC.
- Ti.App.fireEvent('initiateQuickStart') - Shortcut event to start a Quick Start Call.
- Ti.App.fireEvent('getFirstDayOfWeek') - Retrieves the first day of the week(in written format, e.g. 'Monday') as set up in the app.
- Ti.App.fireEvent('arrangeQuickPlanningAccount') - Shows a message on quick planning page for selected account and decides if the account needs to be deselected.
- Ti.App.fireEvent('getOAuthToken') - The event starts an OAuth 2.0 Authorization Code Flow and returns an access token to the homescreen.
- Ti.App.fireEvent('setAccountID') - Sets the account id of the ongoing active call.
- Ti.App.fireEvent('addSfEvent') - This event directly creates a planned call with the given parameters.
- Ti.App.fireEvent('createCall') - This event creates / updates planned call (calendar event will also be updated)
- Ti.App.fireEvent('getKeyboardInfo') - This event returns the information regarding soft keyboard - its frame size and whether it is opened or not
- Ti.App.fireEvent('setBackgroundColor') - Sets the background color of the webview.
- Ti.App.fireEvent('clearCalendarDuplicates') - Clears duplicate events for Calendar
- Ti.App.fireEvent('markAllAsRead') - Marks all files as viewed
- Ti.App.fireEvent('createLocalNotification') - Schedules a notification based on defined time in event config
- Ti.App.fireEvent('removeLocalNotification') - Removes scheduled notification based on id received from createLocalNotification callback.
- Ti.App.fireEvent('dropDB') - Drops local DB along with the restart to take effect.
- Ti.App.fireEvent('removeEvent') - Removes a single item from sync box
# slideshow.js
- Ti.App.fireEvent('scrolledBJ') - Jump to the slide given as parameter
- Ti.App.fireEvent('sendAnimationNextBJ') - Activates next build.
- Ti.App.fireEvent('exitModalWebBJ') - Closes modalWebView.
- Ti.App.fireEvent('sendAnimationNext') - Sends next animation to the remote.
- Ti.App.fireEvent('doubleTappedOld') - Handles the old double tapping if used oldNav.
- Ti.App.fireEvent('doubleTappedD') - Fires doubleTapped event with same parameters.
- Ti.App.fireEvent('tappedOnSlide') - Does nothing.
- Ti.App.fireEvent('doubleFingerTapped') - Evaluates JS to prevent double finger tap with parameters.
- Ti.App.fireEvent('tripleFingerTapped') - Refreshes slide page.
- Ti.App.fireEvent('swiped') - Handles swipe operation.
- Ti.App.fireEvent('doubleTapped') - Handles double tap.
- Ti.App.fireEvent('loadPresentationsFromDB') - Loads presentations from table
tbl_slides_v2
. - Ti.App.fireEvent('loadArticlesFromDB') - Loads articles from table 'tbl_articles'.
- Ti.App.fireEvent('logFromWeb') - Logs message.
- Ti.App.fireEvent('addArticlesToDB') - Adds all of the given articles to DB.
- Ti.App.fireEvent('deleteArticlesFromDB') - Clears all of the articles from DB.
- Ti.App.fireEvent('unloadMainPage') - Unloads mainPage.
- Ti.App.fireEvent('refreshMainPage') - Refreshes mainPage.
- Ti.App.fireEvent('loadSlidePage') - Loads a specific page of a presentation.
- Ti.App.fireEvent('refreshSlidePage') - Refreshes the slide page.
- Ti.App.fireEvent('loadPageFromSlides') - Loads the page in the slide.
- Ti.App.fireEvent('gotoVSlide') - Jumps to the respective slide.
- Ti.App.fireEvent('gotoVSlideH') - Jumps to the respective slide, considers hidden slides.
- Ti.App.fireEvent('gotoVSlideHD') - Jumps to the respective slide, considers hidden slides and zero index.
- Ti.App.fireEvent('setLastPage') - Sets the last browsed page. (See Notes section below.)
- Ti.App.fireEvent('getLastSlide') - Retrieves the last slide.
- Ti.App.fireEvent('goBackToLastSlide') - Goes back to the last browsed slide.
- Ti.App.fireEvent('setLastPage') - Sets the active page. (See Notes section below.)
- Ti.App.fireEvent('reloadPage') - Reloads the requested page.
- Ti.App.fireEvent('closeOpenModal') - Closes and opens the modal.
- Ti.App.fireEvent('saveFromHTML') - Saves data to the local DB.
- Ti.App.fireEvent('deleteFromHTML') - Deletes data from local DB.
- Ti.App.fireEvent('getFromHTML') - Retrieves data from the local DB.
- Ti.App.fireEvent('sendStatsFromHTML') - Sends data to an event handler on a server.
- Ti.App.fireEvent('updateModalTitle') - Updates modal title.
- Ti.App.fireEvent('loadWebPage') - Loads web page.
- Ti.App.fireEvent('loadAnimation') - Adds animationWebView to the currentPage's webview.
- Ti.App.fireEvent('loadWebPageFromSlidesBJ') - Loads web page from slides by firing loadWebPageFromSlides event.
- Ti.App.fireEvent('loadWebPageFromSlides') - Loads web page from slide.
- Ti.App.fireEvent('loadWebPageFromFolder') - Loads web page from given folder.
- Ti.App.fireEvent('getParameters') - Retrieves the parameters object Impact injects into modals.
- Ti.App.fireEvent('setModalWebUrl') - Sets modalWebView's URL.
- Ti.App.fireEvent('updateModalWeb') - Updates modalWebView's URL.
- Ti.App.fireEvent('closeModalWeb') - Closes modalWebView.
- Ti.App.fireEvent('refreshModalWeb') - Refreshes(reloads) modalWebView.
- Ti.App.fireEvent('closeScrollWeb') - Closes scrollWebView(presentations).
- Ti.App.fireEvent('closeEmailForm') - Closes
emailPopup
. - Ti.App.fireEvent('loadThreeD') - Loads 3-D file with fileID in a modal window with title.
- Ti.App.fireEvent('loadMolecule') - Loads molecule file with fileID in a modal window with title.
- Ti.App.fireEvent('createEmailClient') - Creates a new email client with parameters over an email dialog.
- Ti.App.fireEvent('loadAppUrl') - Loads application with URL.
- Ti.App.fireEvent('loadCustomPDF') - Loads custom PDF.
- Ti.App.fireEvent('loadPDF') - Loads PDF.
- Ti.App.fireEvent('loadYB') - Loads YB, old feature.
- Ti.App.fireEvent('loadMovie') - Loads movie(video).
# translations.js
- Ti.App.fireEvent('setEmailLanguage') - Sets the languages used in e-mails.
# app_events.js
- Ti.App.fireEvent('pause') - Sets application status to
paused
. - Ti.App.fireEvent('resume') - Sets application status to
resume
. - Ti.Network.fireEvent('change') - Changed network status for the application. (Not written since it is not related to the application but network.)
- Ti.App.fireEvent('openNavigation') - Opens navigation on map with source and destination addresses.
- Ti.App.fireEvent('openExtURL') - Handles various situations after
resume
event is fired.
# split_view_nav.js
- Ti.App.fireEvent('loadFinished') - Fired when loading of the current webview is finished.
- Ti.App.fireEvent('didScroll') - Makes scroll movement in split-view.
- Ti.App.fireEvent('takeScreenshot') - Takes screenshot.
- Ti.App.fireEvent('goToLink') - Jumps to a location within presentation.
- Ti.App.fireEvent('didZoom') - Handles zoom action.
- Ti.App.fireEvent('openAccountInSF') - Opens PZero Card.
- Ti.App.fireEvent('refreshCRM') - Refreshes CRM contacts by getting them from Salesforce.
- Ti.App.fireEvent('goNextChapter') - Goes to next chapter in presentation.
- Ti.App.fireEvent('goPrevChapter') - Goes to previous chapter in presentation.
- Ti.App.fireEvent('goNextSlide') - Goes to next slide in presentation.
- Ti.App.fireEvent('goPrevSlide') - Goes to previous slide in presentation.
- Ti.App.fireEvent('showReferencePopup') - Shows detail of the currently opened file.
- Ti.App.fireEvent('loadPresentation') - Loads a presentation.
- Ti.App.fireEvent('showLinkedFilesForPres') - Show files linked to the presentation.
- Ti.App.fireEvent('launchContentWithID') - Launches content with ID.
- Ti.App.fireEvent('startPresentation') (deprecated) - No documentation available since this event is deprecated as of 24.12.2019.
# split_view_nav_portrait.js
Events under this part is same as events of split_view_nav.js. Please refer to Split View Navigation part for differences and more information.
# bjListener.js
- Ti.App.fireEvent('tweet') - Used for tweeting(Twitter).
- Ti.App.fireEvent('facebook') - Used for posting to Facebook.
- Ti.App.fireEvent('startPaintMode') - Starts painting mode.
- Ti.App.fireEvent('stopPaintMode') - Stops painting mode.
- Ti.App.fireEvent('drawOnPaint') - Drawing event.
- Ti.App.fireEvent('updateRemoteColor') - Updates drawing color.
- Ti.App.fireEvent('changePDFPage') - Change the pdf page to the next one. (Only used internal.)
- Ti.App.fireEvent('closeModalWindow') - Closes a previously opened modal window.
- Ti.App.fireEvent('oP') - Toggles chart.
- Ti.App.fireEvent('videoPaused') - Pauses the currently playing video.
- Ti.App.fireEvent('videoPlaying') - If there is a previously paused a video active, resumes it.
- Ti.App.fireEvent('gotRemote') - Fired after the remote data is gathered.
- Ti.App.fireEvent('takeNoteshot') - Takes a screenshot of paintView.
# bjSender.js
- Ti.App.fireEvent('sendRemote') - Send parameters to remote device.
- Ti.App.fireEvent('oPSend') - Toggles chart over the remote device.
# translator.js
- Ti.App.fireEvent('translateFromWorkbench') - Translates a value and updates tbl_translations.
- Ti.App.fireEvent('translateWeb') - Translates values without updating DB.
# callPlanning.js
- Ti.App.fireEvent('finishedPickingContent') - Updates call contents based on selected content.
- Ti.App.fireEvent('finishedPickingDate') - Updates call date based on selected date.
# googleMaps.js
- Ti.App.fireEvent('mapRouteReady') - Fired after routing on Google Maps is ready.
# login.js
- Ti.App.fireEvent('loggedInAsUDID') - Fired after user logs in with UDID.
# microsoft.js
- Ti.App.fireEvent('checkLoginDynamics') - Checks login to Dynamics CRM.
# oracle.js
- Ti.App.fireEvent('checkLoginOracle') - Fired after login to the Oracle On Demand CRM.
# SAP.js
- Ti.App.fireEvent('checkLoginSAP') - Fired after login to the SAP.
# pdfSender.js
- Ti.App.fireEvent('sendDocs') - Opens content picker screen for sending the documents.
- Ti.App.fireEvent('chooseFavorites') - Opens a native list that holds recently viewed and favorite documents.
- Ti.App.fireEvent('sendPickingContent') - Used for sending content with email options.
# secureArea.js
- Ti.App.fireEvent('launchBluetoothScanner') - Opens bluetooth scanner.
- Ti.App.fireEvent('launchSupport') - Launches support alert dialog.
# playlist.js
- Ti.App.fireEvent('loadPlaylist') - Loads playlist with given files.
- Ti.App.fireEvent('loadNextInPlaylist') - Opens next file in playlist.
# planning.js
- Ti.App.fireEvent('disableTopButtons') - Disables right and left navigation buttons.
- Ti.App.fireEvent('enableTopButtons') - Enables right and left navigation buttons.
- Ti.App.fireEvent('showHelp') - Shows help. (No further explanations since this event listener is added and removed at multiple places in source code.)
- Ti.App.fireEvent('finishedPickingContent') - Updates call planning contents based on selected content.
- Ti.App.fireEvent('chosenAccount') - Empty event.
- Ti.App.fireEvent('mapRouteReady') - Fired after mapWebView is ready and the route is prepared.
- Ti.App.fireEvent('crmSynced') - Fired after CRM sync is finished. (No further explanations since this event listener is added and removed at multiple places in source code.)
- Ti.App.fireEvent('getIsPostcallActive') - Returns a boolean indicating if postcall form is active.
- Ti.App.fireEvent('getIsMapViewWindowActive') - Returns a boolean indicating if map view window is opened.
# planning_msd.js
Events under this part is same as events of planning.js. Please refer to planning.js part for differences and more information.
# presentationOrder.js
- Ti.App.fireEvent('deletePresentation') - Deletes the presentation.
- Ti.App.fireEvent('editPresentation') - Edits a presentation.
- Ti.App.fireEvent('finishedEditingPresentation') - Fired after editing is done.
- Ti.App.fireEvent('finishedCreatingPresentation') - Fired after creating is done.
- Ti.App.fireEvent('showHelp') - Shows help for presentation editor.
# startApp.js
- Ti.App.fireEvent('synciTunes') - Synchronizes iTunes.
- Ti.App.fireEvent('uiReady') - Fired after the UI is ready, checks extra things.
- Ti.App.fireEvent('checkMemory') - Checks available memory.
- Ti.App.fireEvent('askJSON') - Loads offline CMS data.
- Ti.App.fireEvent('pitcherLog') - Logs the given parameter into Pitcher log file.
- Ti.App.fireEvent('recognizedGestures') - Empty.
- Ti.App.fireEvent('refreshMemory') - Refreshes the memory.
- Ti.App.fireEvent('playPauseVideoWithArray') - Plays a video file with cue points.
- Ti.App.fireEvent('close') - Shuts down the application.
- Ti.App.fireEvent('showReferences') - Shows the linked content of the file.
- Ti.App.fireEvent('OAuthSuccess') - Handles all of the operations after a successful CRM login.
- Ti.App.fireEvent('setInternalOnlyFilesVisibility') - Provides the ability to show / hide internal files.
# stats.js
- Ti.App.fireEvent('exception') - Exception handler.
- Ti.App.fireEvent('close') - Exits app.
- Ti.App.fireEvent('showGesture') - Shows gestures on a newly created gestureModal.
- Ti.App.fireEvent('sendCLMPoint') - Sends the scroll points and last scrolled page for Emotional Feedback.
- Ti.App.fireEvent('stopDetailing') - Stops call planning detailing.
- Ti.App.fireEvent('startHandsFree') - Starts hands-free mode.
- Ti.App.fireEvent('stopHandsFree') - Stops hands-free mode.
- Ti.App.fireEvent('logout') - Handles all of the operations that happen on logging out from CRM.
- Ti.App.fireEvent('showCachedOrders') - Shows all of the offline call records.
- Ti.App.fireEvent('startDetailing') - Starts call planning detailing.
- Ti.App.fireEvent('startPreCall') - Starts precall.
- Ti.App.fireEvent('startNetwork') - Starts all of the network capabilities.
- Ti.App.fireEvent('setCategory') - Sets the category.
- Ti.App.fireEvent('changeCategory') - Changes the shown category.
- Ti.App.fireEvent('showProducts') - Shows products.
# tester.js
- Ti.App.fireEvent('startedTestingPDF') - Empty.
- Ti.App.fireEvent('startedTesting') - General testing event for presentations and PDF files.
# Notes
Check additional notes here