|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Garmin.DeviceDisplay
Garmin.DeviceDisplay
Defined in GarminDeviceDisplay.js
Requires:
| Field Summary | |
<static> Object |
LINKS
Constant defining links referenced in the DeviceDisplay |
| Constructor Summary | |
Garmin.DeviceDisplay(mainElement, options)
Provides the easiest avenue for getting a working instance of the plug-in onto your page. |
|
| Method Summary | |
void
|
_addToActivityTable(index, activity)
The activityTable object is the HTML table element on the demo page. |
void
|
_applyDataFilters()
|
Object
|
_buildDescriptiveStatusString(statusText)
Builds a descriptive string from the status response (typically JSON, but also can be a plain ol' string). |
void
|
_checkAllDirectory()
Selects all checkboxes in the activity directory, which selects all activities to be read from the device. |
void
|
_clearActivityTable()
|
void
|
_createActivityDirectory()
Creates the activity directory of all activities (activity IDs) on the device of the user-selected type. |
Object
|
_createElement(id, text, type, parent)
|
Object
|
_directoryHasSelected()
Checks if any activities in directory listing are selected. |
void
|
_finishReadProcessing(json)
|
void
|
_generateActivityDirectoryElement()
|
void
|
_generateActivityTableElement()
|
void
|
_generateActivityTableHeader()
|
void
|
_generateSendDataElement()
|
void
|
_listActivities(activities)
|
void
|
_listDirectory(activities)
Lists the directory and returns summary data (# of tracks). |
void
|
_populateActivityQueue()
Creates the activity queue of selected activities. |
void
|
_postActivityToServer()
Posts the last read activity data from the activityQueue using the method defined in this.options.postActivityHandler . |
void
|
_readNextSelected()
Reads the user-selected activities from the device by using the activity queue. |
Object
|
_restrictByDevice()
Checks the connected device against those listed in this.options.restrictByDevice and displays a status message if the connected device is not supported by the application. |
Garmin.Series
|
_seriesFromSelect(select)
Retreive the two index string value from the selected index. |
void
|
cancelFindDevices()
Entry point for cancelling search for connected devices. |
void
|
clearMapDisplay()
Clears overlays from map. |
void
|
defaultExceptionHandler(<Error> error)
Default exception handler method handles plug-in support/downloads/upgrades. |
void
|
displayTrack(series)
Draws a simple line on the map using the Garmin.MapController. |
void
|
displayWaypoint(series)
Draws a point (usualy as a thumb tack) on the map using the Garmin.MapController. |
void
|
handleException(<Error> error)
Central exception dispatch method will delegate to options.customExceptionHandler if defined or call defaultExceptionHandler otherwise. |
void
|
hideProgressBar()
Hides progress bar. |
Boolean
|
isUnlocked()
Plugin unlock status |
void
|
onCancelFindDevices(json)
Call-back for find device cancelled. |
void
|
onCancelReadFromDevice(json)
Call-back for device read cancelled. |
void
|
onCancelWriteToDevice(json)
Call-back triggered when write has been cancelled. |
void
|
onException(json)
Call-back for asynchronous method exceptions. |
void
|
onFinishFindDevices(json)
Call-back triggered after plugin has completed its search for devices. |
void
|
onFinishReadFromDevice(json)
Call-back for device read. |
void
|
onFinishWriteToDevice(json)
|
void
|
onProgressReadFromDevice(json)
Call-back for device read progress. |
void
|
onProgressWriteToDevice(json)
|
void
|
onStartFindDevices(json)
Call-back triggered before plugin searches for connected devices. |
void
|
onStartWriteToDevice(json)
Call-back triggered before writing to a device. |
void
|
onWaitingWriteToDevice(json)
Call-back when the device already has a file with this name on it. |
void
|
readFromDevice()
Initiation call for reading from a device. |
void
|
readSpecificTypeFromDevice(readDataType)
Generic read method, supporting GPX, TCX, Courses, Workouts, User Profiles, TCX activity directory, and TCX course directory reads. |
void
|
resetUI()
Resets UI widgets based on state of application. |
void
|
setOptions(<Object> options)
Sets options for this display object. |
void
|
setStatus(statusText)
Set status text if showStatusElement is visible. |
void
|
showProgressBar()
Makes progress bar visible. |
void
|
startFindDevices()
Entry point for searching for connected devices. |
void
|
updateProgressBar(value)
Update percentage representation of progress bar. |
void
|
writeToDevice()
Writes any supported data to the device. |
| Field Detail |
<static> Object LINKS
| Constructor Detail |
Garmin.DeviceDisplay(mainElement, options)
mainElement - - (String) id of the element in which to generate the contents (can also be a reference to the dom element itself).
options - - (Object) Object with options (see Garmin.DeviceDisplayDefaultOptions for descriptions of possible options). requires Prototype
| Method Detail |
void _addToActivityTable(index, activity)
void _applyDataFilters()
Object _buildDescriptiveStatusString(statusText)
void _checkAllDirectory()
void _clearActivityTable()
void _createActivityDirectory()
Object _createElement(id, text, type, parent)
Object _directoryHasSelected()
void _finishReadProcessing(json)
void _generateActivityDirectoryElement()
void _generateActivityTableElement()
void _generateActivityTableHeader()
void _generateSendDataElement()
void _listActivities(activities)
void _listDirectory(activities)
void _populateActivityQueue()
void _postActivityToServer()
void _readNextSelected()
Object _restrictByDevice()
Garmin.Series _seriesFromSelect(select)
Select - select - the Select DOM instance
void cancelFindDevices()
void clearMapDisplay()
void defaultExceptionHandler(<Error> error)
error - to process.
void displayTrack(series)
Garmin - .Series series - that contains a track.
void displayWaypoint(series)
Garmin - .Series series - that contains the lat/lon position of the point.
void handleException(<Error> error)
error - to process.
void hideProgressBar()
Boolean isUnlocked()
void onCancelFindDevices(json)
void onCancelReadFromDevice(json)
void onCancelWriteToDevice(json)
void onException(json)
void onFinishFindDevices(json)
void onFinishReadFromDevice(json)
void onFinishWriteToDevice(json)
void onProgressReadFromDevice(json)
void onProgressWriteToDevice(json)
void onStartFindDevices(json)
void onStartWriteToDevice(json)
void onWaitingWriteToDevice(json)
void readFromDevice()
void readSpecificTypeFromDevice(readDataType)
extension - - the file extension of the type to Garmin.DeviceDisplay.prototype.read = gpx;or tcx
void resetUI()
String - > optional status message.
void setOptions(<Object> options)
options - - Object with options.
void setStatus(statusText)
text - to display.
void showProgressBar()
void startFindDevices()
void updateProgressBar(value)
percentage - Garmin.DeviceDisplay.prototype.completion = 0;-100
void writeToDevice()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||