|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
Object plugin
| Constructor Detail |
Garmin.DevicePlugin(pluginElement)
gpsPluginElement - element that references the Garmin GPS Control Web Plugin that should be installed.
| Method Detail |
void cancelDownloadData()
void cancelFindDevices()
void cancelReadFitnessData()
void cancelReadFromGps()
void cancelWriteToGps()
Number finishDownloadData()
Boolean finishFindDevices()
Number finishReadFitnessData()
Number finishReadFromGps()
Number finishWriteToGps()
Boolean fitnessTransferSucceeded()
String getDeviceDescriptionXml(deviceNumber)
Number - } - deviceNumber assigned by the plugin, see getDevicesXmlString for assignment of that number.
String getDevicesXml()
Object getGpsXml()
String getMessageBoxXml()
String getProgressXml()
Object getTcdXml()
String getVersionXml()
Boolean gpsTransferSucceeded()
void respondToMessageBox(response)
response - should be an int which corresponds to a button value from this.plugin.MessageBoxXml
void startDownloadData(gpsDataString, filename, deviceNumber)
gpsDataString - - the gpi information that should be transferred to the device.
deviceNumber - - the device number assigned by the plugin. This is necessary for the download of this .GPI files according to the GarminAxControl.idl.
void startFindDevices()
void startReadFitnessData(deviceNumber, dataTypeName)
Number - } - deviceNumber assigned by the plugin, see getDevicesXmlString for assignment of that number.
String - } - a Fitness DataType from the GarminDevice.xml retrieved with DeviceDescription
void startReadFromGps(deviceNumber)
Number - } - deviceNumber assigned by the plugin, see getDevicesXmlString for assignment of that number.
void startWriteToGps(gpsXml, filename, deviceNumber)
gpsXml - - the gps/gpx information that should be transferred to the device.
filename - - the desired filename for the gpsXml that shall end up on the device.
deviceNumber - - the device number assigned by the plugin.
Boolean unlock(<String> web_path, <String> unlock_code)
web_path -
unlock_code -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||