This class handles the api lifecycle, configuration and error management
More...
Static Public Member Functions | |
| static void | addApiListener (ApiListener listener) |
| final static native ApiError | deleteSettingsParam (String section, String key) |
| static final ApiError | enableNetworkConnections (final boolean enable) |
| final static native String | getApplicationParam (String key) |
| final static native ApiError | getLastError () |
| final static native String | getLastErrorDescription () |
| final static native boolean | getPowerSavingMode () |
| static final String | getServerValue (final String name) |
| final static native String | getSettingsParam (String section, String key, String defaultValue) |
| final static native String | getSystemAttribute (SystemAttribute attrib) |
| static final boolean | IsNetworkConnectionEnabled () |
| static void | removeAllApiListeners () |
| static void | removeApiListener (ApiListener listener) |
| static final ApiError | sendFeedback (final FeedbackType type, final String xml) |
| static final void | sensorData (final Sensor sensor, final double timestamp, final double d1, final double d2, final double d3, final double d4) |
| final static native ApiError | setApplicationParam (String key, String value) |
| static final ApiError | setPowerSavingMode (final boolean enable) |
| final static native ApiError | setServerParams (String parameters) |
| final static native ApiError | setServerValue (String name, String value) |
| final static native ApiError | setSettingsParam (String section, String key, String value) |
| static final ApiError | useMapData (final boolean use) |
It contains the elementary functions for initialization, uninitialization and configurations like server parameters. Further the class keeps a general error state and more detailed description of the last error.
|
static |
|
static |
Completely deletes a parameter from the settings. Forces the SDK to use default values instead.
|
static |
Enables or disables network connections.
| enable | if false, all network connections from the SDK are disabled |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Retrieve internal configuration information from the SDK
| attrib | see values of SystemAttribute. |
|
static |
|
static |
|
static |
|
static |
Function to send feedback or log files to infoware. The api starts an internal task and sends progress and finish information back by the general callback.
| type | - MTA_FEEDBACK_TYPE Type of the feedback |
| xml | - The feedback with multiple attributes... |
|
static |
|
static |
Generic function to set arbitrary user defined application parameters that are persistently stored over the application runtime. Parameters are defined by using key-value pairs and stored in the settings.ini file under the [APPLICATION] tag. The values are restricted to a length of 255 characters. Longer keys will be cut at the 255 character and a String terminator is appended.
| key | - to add |
| value | - to assign |
|
static |
Enables or disables the power saving mode.
| enable | if true, all API timers are stopped, if false, all API timers are resumed |
|
static |
| parameters | additional parameters for all server requests. The params are attached as suffix to all requests. |
|
static |
Initializes server config variables resp. URL parameters.
| name | - param name to set |
| value | - param value to set |
|
static |
|
static |
Activates or deactivates the usage of the map data. This is useful, if you like to exchange the map data during runtime. If the usage is deactivated, a current route guidance will be stopped and all Objects - except the MapViewers - will be deleted.
| use | If true, the usage of the map data will be activated again. If false, the SDK stops using the map data. Then it is possible to exchange the map files. |