|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Garmin.DevicePlugin
requires Prototype
Defined in GarminDevicePlugin.js
| Constructor Summary | |
Garmin.DevicePlugin(pluginElement)
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. |
|
| Method Summary | |
void
|
cancelDownloadData()
Cancel the asynchronous Download Data operation. |
void
|
cancelFindDevices()
Cancels the current find devices interaction. |
void
|
cancelReadFitnessData()
Cancel the asynchronous ReadFitnessData operation. |
void
|
cancelReadFitnessDetail()
Cancel the asynchronous ReadFitnessDirectory operation. |
void
|
cancelReadFitnessDirectory()
Cancel the asynchronous ReadFitnessDirectory operation. |
void
|
cancelReadFromGps()
Cancels the current read from the device. |
void
|
cancelWriteFitnessData()
Cancel the asynchronous ReadFitnessData operation. |
void
|
cancelWriteToGps()
Cancels the current write operation to the gps device. |
Boolean
|
downloadDataSucceeded()
Indicates success of StartDownloadData operation. |
Number
|
finishDownloadData()
This is used to indicate the status of the download process. |
Boolean
|
finishFindDevices()
Poll - with this function to determine completion of startFindDevices. |
Number
|
finishReadFitnessData()
Poll for completion of the asynchronous ReadFitnessData operation. |
Number
|
finishReadFitnessDetail()
Poll for completion of the asynchronous ReadFitnessDetail operation. |
Number
|
finishReadFitnessDirectory()
Poll for completion of the asynchronous ReadFitnessDirectory operation. |
Number
|
finishReadFromGps()
Indicates the status of the read process. |
Number
|
finishWriteFitnessData()
This is used to indicate the status of the write process for fitness data. |
Number
|
finishWriteToGps()
This is used to indicate the status of the write process. |
Boolean
|
fitnessTransferSucceeded()
Indicates success of ReadFitnessData or WriteFitnessData operation. |
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()
Returns the xml describing the message when the plug-in is waiting for input from the user. |
Array
|
getPluginVersion()
Gets the version number for the plugin the user has currently installed. |
String
|
getPluginVersionString()
Gets a string of the version number for the plugin the user has currently installed. |
String
|
getProgressXml()
Get the status/progress of the current state or transfer. |
Object
|
getSupportsFitnessDirectoryRead()
Lazy-logic accessor to fitness write support var. |
Object
|
getSupportsFitnessReadCompressed()
Lazy-logic accessor to fitness read compressed support var. |
Object
|
getSupportsFitnessWrite()
Lazy-logic accessor to fitness write support var. |
Object
|
getTcdXml()
This is the fitness data Xml information from the device. |
Object
|
getTcdXmlz()
Returns last read fitness xml data in compressed format. |
String
|
getVersionXml()
Returns metadata information about the plugin version. |
Boolean
|
gpsTransferSucceeded()
Indicates success of WriteToGps operation. |
Object
|
isUnlocked()
Returns true if the plug-in is unlocked. |
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
|
startReadFitnessDetail(deviceNumber, dataTypeName, dataId)
Start the asynchronous ReadFitnessDetail operation. |
void
|
startReadFitnessDirectory(deviceNumber, dataTypeName)
Start the asynchronous ReadFitnessDirectory operation. |
void
|
startReadFromGps(deviceNumber)
Initiates the read from the gps device conneted. |
void
|
startWriteFitnessData(tcdXml, deviceNumber, filename, dataTypeName)
Start the asynchronous StartWriteFitnessData operation. |
void
|
startWriteToGps(gpsXml, filename, deviceNumber)
Initates writing the gpsXml to the device specified by deviceNumber with a filename set by filename. |
Boolean
|
unlock(pathKeyPairsArray)
Unlocks the GpsControl object to be used at the given web address. |
| Constructor Detail |
Garmin.DevicePlugin(pluginElement)
pluginElement - element that references the Garmin GPS Control Web Plugin that should be installed. constructor
| Method Detail |
void cancelDownloadData()
void cancelFindDevices()
void cancelReadFitnessData()
void cancelReadFitnessDetail()
void cancelReadFitnessDirectory()
void cancelReadFromGps()
void cancelWriteFitnessData()
void cancelWriteToGps()
Boolean downloadDataSucceeded()
Number finishDownloadData()
Boolean finishFindDevices()
Number finishReadFitnessData()
Number finishReadFitnessDetail()
Number finishReadFitnessDirectory()
Number finishReadFromGps()
Number finishWriteFitnessData()
Number finishWriteToGps()
Boolean fitnessTransferSucceeded()
String getDeviceDescriptionXml(deviceNumber)
deviceNumber - {Number} Assigned by the plugin, see getDevicesXml for assignment of that number.
String getDevicesXml()
Object getGpsXml()
String getMessageBoxXml()
Array getPluginVersion()
String getPluginVersionString()
String getProgressXml()
Object getSupportsFitnessDirectoryRead()
Object getSupportsFitnessReadCompressed()
Object getSupportsFitnessWrite()
Object getTcdXml()
Object getTcdXmlz()
String getVersionXml()
Boolean gpsTransferSucceeded()
Object isUnlocked()
void respondToMessageBox(response)
response - should be an int which corresponds to a button value from this.plugin.MessageBoxXml
void startDownloadData(gpsDataString, filename, deviceNumber)
gpsDataString - {String} the gpi information that should be transferred to the device.
filename - {String} the filename to write to on the device.
deviceNumber - {Number} the device number assigned by the plugin.
void startFindDevices()
void startReadFitnessData(deviceNumber, dataTypeName)
deviceNumber - {Number} assigned by the plugin, see getDevicesXmlString for assignment of that number.
dataTypeName - {String} a fitness datatype from the Garmin Device XML retrieved with getDeviceDescriptionXml
void startReadFitnessDetail(deviceNumber, dataTypeName, dataId)
deviceNumber - assigned by the plugin, see getDevicesXmlString for assignment of that number.
dataTypeName - a Fitness DataType from the GarminDevice.xml retrieved with DeviceDescription
void startReadFitnessDirectory(deviceNumber, dataTypeName)
deviceNumber - {Number} assigned by the plugin, see getDevicesXmlString for assignment of that number.
dataTypeName - a Fitness DataType from the GarminDevice.xml retrieved with DeviceDescription
void startReadFromGps(deviceNumber)
deviceNumber - {Number} assigned by the plugin, see getDevicesXml for assignment of that number.
void startWriteFitnessData(tcdXml, deviceNumber, filename, dataTypeName)
tcdXml - {String} XML of TCD data
deviceNumber - {Number} the device number, assigned by the plugin. See getDevicesXmlString for assignment of that number.
filename - {String} the filename to write to on the device.
dataTypeName - {String} a Fitness DataType from the GarminDevice.xml retrieved with DeviceDescription
void startWriteToGps(gpsXml, filename, deviceNumber)
gpsXml - {String} the gps/gpx information that should be transferred to the device.
filename - {String} the desired filename for the gpsXml that shall end up on the device.
deviceNumber - {Number} the device number assigned by the plugin.
Boolean unlock(pathKeyPairsArray)
pathKeyPairsArray - {Array}- baseURL and key pairs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||