|
|||||||||
| 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
|
_applyDataFilters()
|
Object
|
_createElement(id, text, type, parent)
|
void
|
_finishReadProcessing(json)
|
void
|
_listActivities(activities)
|
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
|
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, default is to If customExceptionHandler is defined, all error handling is delegated to that method - good luck. |
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(<String> extension)
Initiation call for reading from a device. |
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 _applyDataFilters()
Object _createElement(id, text, type, parent)
void _finishReadProcessing(json)
void _listActivities(activities)
Garmin.Series _seriesFromSelect(select)
Select - select - the Select DOM instance
void cancelFindDevices()
void clearMapDisplay()
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(<String> extension)
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 | ||||||||