| java.lang.Object | |
| ↳ | com.digi.android.idigi.library.core.IDigiServiceManager |
This class provides access to the iDigi specific API and other common useful methods in any Android application. The service is instantiated as follows:
IDigiServiceManager iDigiServiceManager = new IDigiServiceManager();
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the device ID.
| |||||||||||
Returns a Map with the target as key and the IDocommandListener subscribed to that target as value.
| |||||||||||
Returns a String containing the latest error message generated.
| |||||||||||
Returns the IDigiServiceManager instance.
| |||||||||||
Returns a String containing the iDigi service version.
| |||||||||||
Returns whether or not the Android device is a virtual device.
| |||||||||||
Returns whether or not the iDigi service is installed in the Android device.
| |||||||||||
Returns whether or not the iDigi service is running in the Android device.
| |||||||||||
Sends to iDigi the file located in the given path.
| |||||||||||
Sends to iDigi the file located in the given path.
| |||||||||||
Sends to iDigi the file located in the given path.
| |||||||||||
Sends a measured sample to iDigi in order to be stored in the samples
Data Base.
| |||||||||||
Sends a measured sample to iDigi in order to be stored in the samples
Data Base.
| |||||||||||
Sends a list of measured samples to iDigi in order to be stored in the samples
Data Base.
| |||||||||||
Sends a list of measured samples to iDigi in order to be stored in the samples
Data Base.
| |||||||||||
Sends a list of measured samples to iDigi in order to be stored in the samples
Data Base.
| |||||||||||
Sends a list of measured samples to iDigi in order to be stored in the samples
Data Base.
| |||||||||||
Sends a file to iDigi with the given name and text.
| |||||||||||
Sends a file to iDigi with the given name and text.
| |||||||||||
Sends a file to iDigi with the given name and text.
| |||||||||||
Starts the iDigi service.
| |||||||||||
Adds the given IDoCommandListener to the list of listeners
to be notified when a
do_command is received in the associated
listener target. | |||||||||||
Removes the IDoCommandListener that is subscribed to the given target.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the device ID.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns a Map with the target as key and the IDocommandListener subscribed to that target as value.
Returns a String containing the latest error message generated.
Returns the IDigiServiceManager instance.
Returns a String containing the iDigi service version.
Returns whether or not the Android device is a virtual device.
Returns whether or not the iDigi service is installed in the Android device.
Returns whether or not the iDigi service is running in the Android device.
Sends to iDigi the file located in the given path.
| destPath | Path and name of the file to be sent. |
|---|---|
| localPath | Path containing the file to be uploaded. |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
Sends to iDigi the file located in the given path.
| destPath | Path and name of the file to be sent. |
|---|---|
| localPath | Path containing the file to be uploaded. |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
| timeout | The number of milliseconds the method will wait for the status of the send file action. |
Sends to iDigi the file located in the given path. The transfer method is asynchronous.
| destPath | Path and name of the file to be sent. |
|---|---|
| localPath | Path containing the file to be uploaded. |
Sends a measured sample to iDigi in order to be stored in the samples Data Base. The sample needs to be stored in a temp file first, so a destiny path is also needed.
| destPath | Path and name of the file to be sent. |
|---|---|
| sample | The sample to store in iDigi |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
Sends a measured sample to iDigi in order to be stored in the samples Data Base. The sample needs to be stored in a temp file first, so a destiny path is also needed.
| destPath | Path and name of the file to be sent. |
|---|---|
| sample | The sample to store in iDigi |
Sends a list of measured samples to iDigi in order to be stored in the samples Data Base. The sample needs to be stored in a temp file first, so a destiny path is also needed.
| destPath | Path and name of the file to be sent. |
|---|---|
| sample | The sample to store in iDigi |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
| timeout | The number of milliseconds the method will wait for the status of the send sample action. |
Sends a list of measured samples to iDigi in order to be stored in the samples Data Base. The samples need to be stored in a temp file first, so a destiny path is also needed.
| destPath | Path and name of the file to be sent. |
|---|---|
| samples | The list of samples to store in iDigi |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
Sends a list of measured samples to iDigi in order to be stored in the samples Data Base. The samples need to be stored in a temp file first, so a destiny path is also needed.
| destPath | Path and name of the file to be sent. |
|---|---|
| samples | The list of samples to store in iDigi |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
| timeout | The number of milliseconds the method will wait for the status of the send samples action. |
Sends a list of measured samples to iDigi in order to be stored in the samples Data Base. The samples need to be stored in a temp file first, so a destiny path is also needed.
| destPath | Path and name of the file to be sent. |
|---|---|
| samples | The list of samples to store in iDigi |
Sends a file to iDigi with the given name and text.
| destPath | Path and name of the file to be sent. |
|---|---|
| data | Text contents of the file. |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
| timeout | The number of milliseconds the method will wait for the status of the send file action. |
Sends a file to iDigi with the given name and text. The transfer method is asynchronous.
| destPath | Path and name of the file to be sent. |
|---|---|
| data | Text contents of the file. |
Sends a file to iDigi with the given name and text.
| destPath | Path and name of the file to be sent. |
|---|---|
| data | Text contents of the file. |
| async | Indicates whether the transfer will be asynchronous (true) or synchronous (false). If it is synchronous, the manager will block until a response is received or the timeout expires. |
Starts the iDigi service.
Adds the given IDoCommandListener to the list of listeners
to be notified when a do_command is received in the associated
listener target.
| target | The target that the IDoCommandListener will subscribe. |
|---|---|
| listener | IDoCommandListener to be added. |
Removes the IDoCommandListener that is subscribed to the given target.
| target | Target that the IDoCommandListener to be removed is bound. |
|---|