Basic class providing set of functions to command Navigation. More...
Public Member Functions | |
void | setSoundMutex (boolean mutex) throws RemoteException |
void | setOnSoundListener (OnSoundListener listener) |
void | setOnTtsListener (OnTtsListener listener) |
void | connect () |
Connect to the remote service. | |
void | disconnect () |
Disconnect from the remote service. | |
void | show (boolean background) throws RemoteException |
Show the navigation. | |
void | bringApplicationToBackground () |
Bring navigation to background. | |
void | registerCallback () throws RemoteException |
Register callback to receive events from remote app. | |
void | unregisterCallback () throws RemoteException |
Unregister callback. | |
boolean | isAppRunning () throws RemoteException |
Checks if the Navi Thread is running. | |
void | stopSygicService () |
Stop SygicService. | |
String | selfTest (String json, int maxTime) throws GeneralException |
Static Public Member Functions | |
static Api | init (Context context, String pckgName, String className, ApiCallback callback) |
Initializes the Api class. | |
static Api | getInstance () |
Gets the single instance of Api. | |
static boolean | isApplicationRunning (int maxTime) throws GeneralException |
Verifies whether Navigation is running. | |
static void | endApplication (int maxTime) throws GeneralException |
Ends Navigation application. | |
static boolean | isApplicationInForeground (int maxTime) throws GeneralException |
static String | getUniqueDeviceId (int maxTime) throws GeneralException |
Returns device ID. | |
static String | getMapVersion (String iso, int maxTime) throws GeneralException |
Gets the map version of a given country's ISO code. | |
static NaviVersion | getApplicationVersion (int maxTime) throws GeneralException |
Returns the application version and build number. | |
static ApiVersion | getSdkVersion () |
Returns the sdk api version and build number. | |
static String | getLibVersion () |
Returns the sdk api version. | |
static String | importFile (String base64Content, String fileName, boolean append) |
Passes base64 string encoded data into the defined file, either to create a new file or to append to an existing file. | |
Static Public Attributes | |
static final String | CLASS_AURA = "com.sygic.aura.SygicService" |
static final String | CLASS_TRUCK = "com.sygic.truck.SygicService" |
static final String | CLASS_FLEET = "com.sygic.fleet.SygicService" |
static final String | CLASS_DRIVE = "com.sygic.drive.SygicService" |
static final String | INTENT_ACTION_MINIMIZE_REMOTE = "com.sygic.intent.action.minimize_remote" |
Package Functions | |
IRemoteSygicService | getService () |
Basic class providing set of functions to command Navigation.
void bringApplicationToBackground | ( | ) |
Bring navigation to background.
RemoteException | the remote exception |
References Api.INTENT_ACTION_MINIMIZE_REMOTE.
void connect | ( | ) |
Connect to the remote service.
void disconnect | ( | ) |
Disconnect from the remote service.
|
static |
Ends Navigation application.
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
Returns the application version and build number.
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
Referenced by ApiNavigation.getRoute().
|
static |
Gets the single instance of Api.
Referenced by ApiItinerary.addEntryToItinerary(), ApiItinerary.addItinerary(), ApiItinerary.addItinerary(), ApiOnline.addMapCorrectionEvents(), ApiPoi.addPoi(), ApiPoi.addPoiCategory(), ApiItinerary.calculateRoute(), ApiOptions.changeApplicationOptions(), ApiOnline.clearMapCorrectionEvents(), ApiDialog.closeDialogs(), ApiItinerary.deleteEntryInItinerary(), ApiItinerary.deleteItinerary(), ApiPoi.deletePoi(), ApiPoi.deletePoiCategory(), Api.endApplication(), ApiPoi.findNearbyPoi(), ApiPoi.findNearbyPoiList(), ApiDialog.flashMessage(), ApiNavigation.getActualGpsPosition(), ApiOptions.getApplicationOptions(), Api.getApplicationVersion(), ApiInfo.getCurrentSpeedLimit(), ApiHistory.getHistoryList(), ApiItinerary.getItineraryList(), ApiLocation.getLocationAddressInfo(), ApiLocation.getLocationRoadInfo(), ApiOnline.getMapCorrectionEvents(), Api.getMapVersion(), ApiOnline.getMobileData(), ApiPoi.getPoiCategoryList(), ApiPoi.getPoiList(), ApiPoi.getPoiOnRoute(), ApiNavigation.getRoute(), ApiNavigation.getRouteStatus(), Api.getUniqueDeviceId(), ApiOnline.goOnline(), ApiGps.gpsSwitchOn(), Api.importFile(), Api.isApplicationInForeground(), Api.isApplicationRunning(), Api.isAppRunning(), ApiNavigation.loadComputedRoute(), ApiNavigation.loadComputedRoute(), ApiMaps.loadGeoFile(), ApiLocation.locationFromAddress(), ApiLocation.locationFromAddressEx(), ApiPoi.makeUserPoiVisible(), ApiNavigation.navigateToAddress(), ApiOnline.onlineServicesLogin(), ApiItinerary.optimizeRoute(), ApiTts.playSound(), ApiOnline.resetMobileData(), ApiLocation.searchLocation(), ApiOptions.setApplicationOptions(), ApiOptions.setDefaultValues(), ApiOnline.setMobileData(), ApiPoi.setPoiWarning(), ApiItinerary.setRoute(), Api.setSoundMutex(), Api.show(), ApiMaps.showCoordinatesOnMap(), ApiDialog.showDialog(), ApiDialog.showMessage(), ApiMaps.showRectangleOnMap(), ApiItinerary.skipNextWaypoint(), ApiNavigation.startNavigation(), ApiNavigation.stopNavigation(), ApiMaps.switchMap(), ApiMaps.unloadGeoFile(), ApiMaps.unloadGeoFiles(), and ApiPoi.updatePois().
|
static |
Returns the sdk api version.
|
static |
Gets the map version of a given country's ISO code.
iso | String describing the country's ISO code to retrieve the version from |
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
Returns the sdk api version and build number.
|
package |
Referenced by ApiItinerary.addEntryToItinerary(), ApiItinerary.addItinerary(), ApiItinerary.addItinerary(), ApiOnline.addMapCorrectionEvents(), ApiPoi.addPoi(), ApiPoi.addPoiCategory(), ApiItinerary.calculateRoute(), ApiOptions.changeApplicationOptions(), ApiOnline.clearMapCorrectionEvents(), ApiDialog.closeDialogs(), ApiItinerary.deleteEntryInItinerary(), ApiItinerary.deleteItinerary(), ApiPoi.deletePoi(), ApiPoi.deletePoiCategory(), Api.endApplication(), ApiPoi.findNearbyPoi(), ApiPoi.findNearbyPoiList(), ApiDialog.flashMessage(), ApiNavigation.getActualGpsPosition(), ApiOptions.getApplicationOptions(), Api.getApplicationVersion(), ApiInfo.getCurrentSpeedLimit(), ApiHistory.getHistoryList(), ApiItinerary.getItineraryList(), ApiLocation.getLocationAddressInfo(), ApiLocation.getLocationRoadInfo(), ApiOnline.getMapCorrectionEvents(), Api.getMapVersion(), ApiOnline.getMobileData(), ApiPoi.getPoiCategoryList(), ApiPoi.getPoiList(), ApiPoi.getPoiOnRoute(), ApiNavigation.getRoute(), ApiNavigation.getRouteStatus(), Api.getUniqueDeviceId(), ApiOnline.goOnline(), ApiGps.gpsSwitchOn(), Api.importFile(), Api.isApplicationInForeground(), Api.isApplicationRunning(), Api.isAppRunning(), ApiNavigation.loadComputedRoute(), ApiNavigation.loadComputedRoute(), ApiMaps.loadGeoFile(), ApiLocation.locationFromAddress(), ApiLocation.locationFromAddressEx(), ApiPoi.makeUserPoiVisible(), ApiNavigation.navigateToAddress(), ApiOnline.onlineServicesLogin(), ApiItinerary.optimizeRoute(), ApiTts.playSound(), ApiOnline.resetMobileData(), ApiLocation.searchLocation(), Api.selfTest(), ApiOptions.setApplicationOptions(), ApiOptions.setDefaultValues(), ApiOnline.setMobileData(), ApiPoi.setPoiWarning(), ApiItinerary.setRoute(), Api.setSoundMutex(), Api.show(), ApiMaps.showCoordinatesOnMap(), ApiDialog.showDialog(), ApiDialog.showMessage(), ApiMaps.showRectangleOnMap(), ApiItinerary.skipNextWaypoint(), ApiNavigation.startNavigation(), ApiNavigation.stopNavigation(), ApiMaps.switchMap(), ApiMaps.unloadGeoFile(), ApiMaps.unloadGeoFiles(), and ApiPoi.updatePois().
|
static |
Returns device ID.
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
Passes base64 string encoded data into the defined file, either to create a new file or to append to an existing file.
base64Content | base64 string encoded data |
fileName | destination filename defined by the full path relative to SygicNavigation root, e.g. "Res/myIcon/my.png" |
append | false to create a new file, true to append to an existing one |
IOException | the general I/O exception |
References Api.getInstance(), and Api.getService().
|
static |
Initializes the Api class.
context | the application context |
pckgName | the package name of the navigation application connecting to. For Sygic Professional it is "com.sygic.fleet" |
className | the class name of the navigation service connecting to. For Sygic Professional Navigation it is "com.sygic.fleet.SygicService" |
callback | the callback to retrieve events from navigation application |
|
static |
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException |
References Api.getInstance(), and Api.getService().
|
static |
Verifies whether Navigation is running.
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException |
References Api.getInstance(), and Api.getService().
boolean isAppRunning | ( | ) | throws RemoteException |
Checks if the Navi Thread is running.
References Api.getInstance(), and Api.getService().
void registerCallback | ( | ) | throws RemoteException |
Register callback to receive events from remote app.
It is not necessary to call this method anymore.
RemoteException | the remote exception |
String selfTest | ( | String | json, |
int | maxTime ) throws GeneralException |
References Api.getService().
void setOnSoundListener | ( | OnSoundListener | listener | ) |
void setOnTtsListener | ( | OnTtsListener | listener | ) |
void setSoundMutex | ( | boolean | mutex | ) | throws RemoteException |
References Api.getInstance(), and Api.getService().
void show | ( | boolean | background | ) | throws RemoteException |
Show the navigation.
Starts if not already running.
background | if true navigation will start in background and will not be shown |
RemoteException | the remote exception |
References Api.getInstance(), and Api.getService().
void stopSygicService | ( | ) |
Stop SygicService.
void unregisterCallback | ( | ) | throws RemoteException |
Unregister callback.
It is not necessary to call this method anymore.
RemoteException | the remote exception |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by Api.bringApplicationToBackground().