![]() |
MapTrip Interface Android Reference Manual 9.10.1
|
Public Member Functions | |
| void | onError (int requestId, String command, ApiError returnCode) |
| void | onErrorWithDescription (int requestId, String command, String description, ApiError returnCode) |
| void | findServerResult (int requestId, ApiError returnCode) |
| void | initResult (int requestId, ApiError returnCode) |
| void | showAppResult (int requestId, ApiError returnCode) |
| void | sendTextResult (int requestId, ApiError returnCode) |
| void | getMapVersionResult (int requestId, String version, ApiError returnCode) |
| void | getMaptripVersionResult (int requestId, String version, ApiError returnCode) |
| void | getApiVersionResult (int requestId, String version, ApiError returnCode) |
| void | showServerResult (int requestId, ApiError returnCode) |
| void | hideServerResult (int requestId, ApiError returnCode) |
| void | addBlockagePointResult (int requestId, ApiError returnCode) |
| void | addBlockagePathResult (int requestId, ApiError returnCode) |
| void | addBlockagePolygonResult (int requestId, ApiError returnCode) |
| void | addBlockageOfRoutePartResult (int requestId, ApiError returnCode) |
| void | deleteAllBlockagesResult (int requestId, ApiError returnCode) |
| void | deleteBlockageAtResult (int requestId, ApiError returnCode) |
| void | deleteBlockageByIDResult (int requestId, ApiError returnCode) |
| void | getBlockageCountResult (int requestId, int BlockageCount, ApiError returnCode) |
| void | getBlockageAtResult (int requestId, double radius, boolean persistent, String ID, long startTime, long endTime, ShpTypes ShapeType, ApiError returnCode) |
| void | stopServerResult (int requestId, ApiError returnCode) |
| void | enableNetworkConnectionsResult (int requestId, ApiError returnCode) |
| void | setDataUsageMonthlyLimitResult (int requestId, ApiError returnCode) |
| void | resetDataUsageMonthlyLimitResult (int requestId, ApiError returnCode) |
| void | getDataUsageMonthlyLimitResult (int requestId, int LimitKB, ApiError returnCode) |
| void | getDataUsageRemainingQuotaResult (int requestId, int remainingKB, ApiError returnCode) |
| void | isNetworkConnectionEnabledResult (int requestId, boolean enabled, ApiError returnCode) |
| void | customFunctionResult (int requestId, String result1, String result2, ApiError returnCode) |
| void | setSettingsParameter (int requestId, ApiError returnCode) |
| void | getSettingsParameter (int requestId, String section, String parameter, String value, ApiError returnCode) |
| void | infoMsg (Info messageType, int param) |
| void de.infoware.android.mti.ApiListener.addBlockageOfRoutePartResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.addBlockageOfRoutePart() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.addBlockagePathResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.addBlockagePath() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.addBlockagePointResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.addBlockagePoint() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.addBlockagePolygonResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.addBlockagePolygon() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.customFunctionResult | ( | int | requestId, |
| String | result1, | ||
| String | result2, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.customFunction() function.
| result1 | - first result (dependent on the maptrip configuration) |
| result2 | - second result (dependent on the maptrip configuration) |
| requestId | - unique Id of the request which initiated the request |
| returnCode | - MTI_ERROR results dependent on the maptrip configuration |
| void de.infoware.android.mti.ApiListener.deleteAllBlockagesResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.deleteAllBlockages() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.deleteBlockageAtResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.deleteBlockageAt() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.deleteBlockageByIDResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.deleteBlockageByID() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.enableNetworkConnectionsResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.enableNetworkConnections() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.findServerResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.findServer() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getApiVersionResult | ( | int | requestId, |
| String | version, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getApiVersion() function.
| requestId | - unique identifier returned by the initiating request |
| version | - version string of the api used by the server |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getBlockageAtResult | ( | int | requestId, |
| double | radius, | ||
| boolean | persistent, | ||
| String | ID, | ||
| long | startTime, | ||
| long | endTime, | ||
| ShpTypes | ShapeType, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getBlockageAt() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getBlockageCountResult | ( | int | requestId, |
| int | BlockageCount, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getBlockageCount() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getDataUsageMonthlyLimitResult | ( | int | requestId, |
| int | LimitKB, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getDataUsageMonthlyLimit() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| limitKB | - Monthly data limit in KB as set by setDataUsageMonthlyLimit |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getDataUsageRemainingQuotaResult | ( | int | requestId, |
| int | remainingKB, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getDataUsageRemainingQuota() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| remainingKB | - remaining quota in KB before reaching the monthly data usage limit |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getMaptripVersionResult | ( | int | requestId, |
| String | version, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getMaptripVersion() function.
| requestId | - unique identifier returned by the initiating request |
| version | - version string of the map data |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getMapVersionResult | ( | int | requestId, |
| String | version, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getMapVersion() function.
| requestId | - unique identifier returned by the initiating request |
| version | - version string of the map data. Format: "(maprelease) mapProvider" |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.getSettingsParameter | ( | int | requestId, |
| String | section, | ||
| String | parameter, | ||
| String | value, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.getSettingsParameter() function
| requestId | - unique Id of the request which caused an error |
| section | - section of the requested parameter |
| parameter | - name of the requested parameter |
| value | - value of the requested parameter |
| returnCode | - error identifier of the type MTI_ERROR
|
| void de.infoware.android.mti.ApiListener.hideServerResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.hideServer() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.infoMsg | ( | Info | messageType, |
| int | param | ||
| ) |
This callback is called on certain events of the server application that can occur if the maptrip application gets user input. It notifies if e.g. a user starts a navigation on the maptrip UI or if Maptrip has started or quit.
This message can be registered before initialization to receive Info.MAPTRIP_STARTED event. After a call to Api.uninit() no further infoMsg can be received. Re-register the callback to receive the Info.MAPTRIP_STARTED events again.
The infomessages maybe extended in further releases - dont treat unknown messages in your application as error to stay compatible with future MapTrip versions.
| messageType | - indicates the event that initiated this callback
|
| param | - message dependent parameter, content depends on the msgCode( may be empty ) |
| void de.infoware.android.mti.ApiListener.initResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.init() function. On success, the server is ready to receive further messages.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.isNetworkConnectionEnabledResult | ( | int | requestId, |
| boolean | enabled, | ||
| ApiError | returnCode | ||
| ) |
Result from the Api.isNetworkConnectionEnabled() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.onError | ( | int | requestId, |
| String | command, | ||
| ApiError | returnCode | ||
| ) |
Called if something went wrong during a mti request respectively after returning from the non-blocking request. This error callback is exclusively used for communication related errors. All other errors that might occur will be indicated in the appropriate requests result callback.
| requestId | - unique Id of the request which caused an error |
| command | - command of the request that caused the error |
| returnCode | - error identifier of the type MTI_ERROR
|
| void de.infoware.android.mti.ApiListener.onErrorWithDescription | ( | int | requestId, |
| String | command, | ||
| String | description, | ||
| ApiError | returnCode | ||
| ) |
Called if something went wrong during a mti request respectively after returning from the non-blocking request. This error callback is exclusively used for communication related errors. All other errors that might occur will be indicated in the appropriate requests result callback.
| requestId | - unique Id of the request which caused an error |
| command | - command of the request that caused the error |
| returnCode | - error identifier of the type MTI_ERROR
|
| description | - something more detailed about the error |
| void de.infoware.android.mti.ApiListener.resetDataUsageMonthlyLimitResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.resetDataUsageMonthlyLimit() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.sendTextResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.sendText() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.setDataUsageMonthlyLimitResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.setDataUsageMonthlyLimit() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.setSettingsParameter | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.setSettingsParameter() function
| requestId | - unique Id of the request which caused an error |
| returnCode | - error identifier of the type MTI_ERROR
|
| void de.infoware.android.mti.ApiListener.showAppResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.showApp() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.showServerResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.showServer() function.
| requestId | - unique identifier returned by the initiating request |
| returnCode | - ApiError.OK on success |
| void de.infoware.android.mti.ApiListener.stopServerResult | ( | int | requestId, |
| ApiError | returnCode | ||
| ) |
Result from the Api.stopServer() function.
| requestId | - unique Id of the request which initiated closing of the server, If the requestID is MTI_REQUEST_NO_REQUEST_ID, the server was closed by an external source. |
| returnCode | - ApiError.OK on success |