Class Garmin.DevicePlugin

Object
   |
   +--Garmin.DevicePlugin

class Garmin.DevicePlugin


This api provides a set of functions to accomplish the following tasks with a Gps Device:

1) Unlocking devices allowing them to be found and accessed.
2) Finding avaliable devices plugged into this machine.
3) Reading from the device.
4) Writing gpx files to the device.
5) Downloading data to the device.
6) Geting messages, getting transfer status/progress and version information from the device.

Note that the GarminPluginAPIV1.xsd is referenced throughout this API. Please find more information about the GarminPluginAPIV1.xsd from http://
Defined in GarminDevicePlugin.js


Field Summary
 Object plugin
          
 
Constructor Summary
Garmin.DevicePlugin(pluginElement)
           
 
Method Summary
 void cancelDownloadData()
           Cancel the asynchrous Download Data operation
 void cancelFindDevices()
           Cancels the current find devices interaction.
 void cancelReadFitnessData()
           Cancel the asynchronous ReadFitnessData operation
 void cancelReadFromGps()
           Cancels the current read from the device.
 void cancelWriteToGps()
           Cancels the current write operation to the gps device.
 Number finishDownloadData()
           This is used to indicate the status of the download process.
 Boolean finishFindDevices()
           Poll - with this function to determine completion of startFindGpsDevices.
 Number finishReadFitnessData()
           Poll for completion of the asynchronous ReadFitnessData operation.
 Number finishReadFromGps()
           This is used to indicate the status of the read process.
 Number finishWriteToGps()
           This is used to indicate the status of the write process.
 Boolean fitnessTransferSucceeded()
          
 String getDeviceDescriptionXml(deviceNumber)
           Returns information about the specified Device indicated by the device Number.
 String getDevicesXml()
           Returns information about the number of devices connected to this machine as well as the names of those devices.
 Object getGpsXml()
           This is the GpsXml information from the device.
 String getMessageBoxXml()
          
 String getProgressXml()
           Get the status/progress of the current state or transfer
 Object getTcdXml()
           This is the fitness data Xml information from the device.
 String getVersionXml()
           Returns metadata information about the plugin version.
 Boolean gpsTransferSucceeded()
          
 void respondToMessageBox(response)
           Responds to a message box on the device.
 void startDownloadData(gpsDataString, filename, deviceNumber)
           Initates downloading the gpsDataString to the device specified by deviceNumber.
 void startFindDevices()
           Initiates a find Gps devices action on the plugin.
 void startReadFitnessData(deviceNumber, dataTypeName)
           Start the asynchronous ReadFitnessData operation.
 void startReadFromGps(deviceNumber)
           Initiates the read from the gps device conneted.
 void startWriteToGps(gpsXml, filename, deviceNumber)
           Initates writing the gpsXml to the device specified by deviceNumber with a filename set by filename.
 Boolean unlock(<String> web_path, <String> unlock_code)
           Unlocks the GpsControl object to be used at the given web adress.

Field Detail

plugin

Object plugin

Constructor Detail

Garmin.DevicePlugin

Garmin.DevicePlugin(pluginElement)

Method Detail

cancelDownloadData

void cancelDownloadData()

cancelFindDevices

void cancelFindDevices()

cancelReadFitnessData

void cancelReadFitnessData()

cancelReadFromGps

void cancelReadFromGps()

cancelWriteToGps

void cancelWriteToGps()

finishDownloadData

Number finishDownloadData()

finishFindDevices

Boolean finishFindDevices()

finishReadFitnessData

Number finishReadFitnessData()

finishReadFromGps

Number finishReadFromGps()

finishWriteToGps

Number finishWriteToGps()

fitnessTransferSucceeded

Boolean fitnessTransferSucceeded()

getDeviceDescriptionXml

String getDeviceDescriptionXml(deviceNumber)

getDevicesXml

String getDevicesXml()

getGpsXml

Object getGpsXml()

getMessageBoxXml

String getMessageBoxXml()

getProgressXml

String getProgressXml()

getTcdXml

Object getTcdXml()

getVersionXml

String getVersionXml()

gpsTransferSucceeded

Boolean gpsTransferSucceeded()

respondToMessageBox

void respondToMessageBox(response)

startDownloadData

void startDownloadData(gpsDataString, filename, deviceNumber)

startFindDevices

void startFindDevices()

startReadFitnessData

void startReadFitnessData(deviceNumber, dataTypeName)

startReadFromGps

void startReadFromGps(deviceNumber)

startWriteToGps

void startWriteToGps(gpsXml, filename, deviceNumber)

unlock

Boolean unlock(<String> web_path, <String> unlock_code)


Documentation generated by JSDoc on Tue May 8 10:22:55 2007