# Start Application Events

These events are in startApp.js file.

# Ti.App.fireEvent('synciTunes')

Synchronizes iTunes with the Impact Application.

Example:

Ti.App.fireEvent('synciTunes', {})

# Ti.App.fireEvent('uiReady')

Fired after the UI is ready.

This event checks all of the settings once UI is opened: SFDC connection, was any call present before quit, etc.

Example:

Ti.App.fireEvent('uiReady', {})

# Ti.App.fireEvent('checkMemory')

Checks available memory.

Example:

Ti.App.fireEvent('checkMemory', {})

# Ti.App.fireEvent('askJSON')

Loads offline CMS data.

Example:

Ti.App.fireEvent('askJSON', {})

# Ti.App.fireEvent('pitcherLog')

Logs given logData.

Example:

Ti.App.fireEvent('pitcherLog', {
  logData: 'myData'
})
  • logData - Data to-be-logged.

# Ti.App.fireEvent('recognizedGesture')

Empty event.

Example:

Ti.App.fireEvent('recognizedGesture', {})

# Ti.App.fireEvent('exitApp')

Creates a dialog with three options while quitting the app and handles quit operation.

Example:

Ti.App.fireEvent('exitApp', {})

# Ti.App.fireEvent('refreshMemory')

Refreshes memory if Impact application is not from App Store.

Example:

Ti.App.fireEvent('refreshMemory', {})

# Ti.App.fireEvent('playPauseVideoWithArray')

Plays a video file with cue points. From Wikipedia: To cue audio is to determine the desired initial playback point in a piece of recorded music.

Example:

Ti.App.fireEvent('playPauseVideoWithArray', {
  cues: '[cue0, cue1, ...]',
  file: 'myFile'
})
  • cues - array of cue points.
  • file - file path for the video.

# Ti.App.fireEvent('close')

Closes all of the DB connections and shuts down the application.

Example:

Ti.App.fireEvent('close', {})

# Ti.App.fireEvent('showReferences')

Shows linked content for the file.

Example:

Ti.App.fireEvent('showReferences', {
  xPos: 123,
  yPos: 456,
  widthV: 789,
  heightV: 987
})
  • xPos - x position of the reference window.
  • yPos - y position of the reference window.
  • widthV - width of the reference window.
  • heightV - height of the reference window.

# Ti.App.fireEvent('OAuthSuccess')

Fired after CRM connection is established.

All of the operations that happen after a successful CRM login(which means the oAuthSuccess) is handled with this event's listener.

Example:

Ti.App.fireEvent('OAuthSuccess', {})

# Ti.App.fireEvent('setInternalOnlyFilesVisibility')

Provides the ability to show / hide internal files.

This property is saved in memory, which will set its default value when the application is shut down.

Default value: false.

Example:

Ti.App.fireEvent('setInternalOnlyFilesVisibility', { areVisible: false })