Basic class providing set of functions to command Navigation. More...
Public Member Functions | |
void | setSoundMutex (boolean mutex) throws RemoteException |
Sets the sound mutex. More... | |
void | setOnSoundListener (OnSoundListener listener) |
Sets the on sound listener. More... | |
void | setOnTtsListener (OnTtsListener listener) |
Sets the on tts listener. More... | |
void | connect () |
Connect to the remote service. More... | |
void | disconnect () |
Disconnect from the remote service. More... | |
void | show (boolean background) throws RemoteException |
Show the navigation. More... | |
void | bringApplicationToBackground () throws RemoteException |
Bring navigation to background. More... | |
void | registerCallback () throws RemoteException |
Register callback to receive events from remote app. More... | |
void | unregisterCallback () throws RemoteException |
Unregister callback. More... | |
boolean | isAppRunning () throws RemoteException |
Checks if the Navi Thread is running. More... | |
Static Public Member Functions | |
static Api | init (Context context, String pckgName, String className, ApiCallback callback) |
Initializes the Api class. More... | |
static Api | getInstance () |
Gets the single instance of Api. More... | |
static boolean | isApplicationRunning (int maxTime) throws GeneralException |
Verifies whether Navigation is running. More... | |
static void | endApplication (int maxTime) throws GeneralException |
Ends Navigation application. More... | |
static String | getUniqueDeviceId (int maxTime) throws GeneralException |
Returns device ID. More... | |
static boolean | isApplicationInForeground (int maxTime) throws GeneralException |
Returns if the application is active in foreground or idle in background. More... | |
static String | getMapVersion (String iso, int maxTime) throws GeneralException |
Gets the map version of a given country's ISO code. More... | |
static NaviVersion | getApplicationVersion (int maxTime) throws GeneralException |
Gets the application version and build number. More... | |
static ApiVersion | getSdkVersion () |
Get sdk version. More... | |
Static Public Attributes | |
static final String | CLASS_AURA = "com.sygic.aura.SygicService" |
static final String | CLASS_DRIVE = "com.sygic.drive.SygicService" |
Package Functions | |
IRemoteSygicService | getService () |
Basic class providing set of functions to command Navigation.
void bringApplicationToBackground | ( | ) | throws RemoteException |
Bring navigation to background.
RemoteException | the remote exception |
References Api.getInstance(), and Api.getService().
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 |
Gets 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().
|
static |
Gets the single instance of Api.
Referenced by ApiMaps.addBitmapToMap(), ApiItinerary.addEntryToItinerary(), ApiItinerary.addItinerary(), ApiPoi.addPoi(), ApiPoi.addPoiCategory(), ApiFavorites.addStopOffPointsToFavorites(), ApiHistory.addStopOffPointToHistory(), ApiOnline.addTMCEvent(), Api.bringApplicationToBackground(), ApiOptions.changeApplicationOptions(), ApiOnline.clearTMCTable(), ApiDialog.closeDialogs(), ApiItinerary.deleteEntryInItinerary(), ApiItinerary.deleteItinerary(), ApiPoi.deletePoi(), ApiPoi.deletePoiCategory(), Api.endApplication(), ApiPoi.findNearbyPoi(), ApiPoi.findNearbyPoiList(), ApiDialog.flashMessage(), ApiNavigation.getActualGpsPosition(), ApiLocation.getAddressList(), Api.getApplicationVersion(), ApiLocation.getCoordinatesFromOffset(), ApiInfo.getCurrentSpeedLimit(), ApiFavorites.getFavoritesList(), ApiHistory.getHistoryList(), ApiItinerary.getItineraryList(), ApiLocation.getLocationAddressInfo(), ApiLocation.getLocationRoadInfo(), Api.getMapVersion(), ApiInfo.getNextInstruction(), ApiNavigation.getOFGRouteStatus(), ApiPoi.getPoiCategoryList(), ApiPoi.getPoiList(), ApiNavigation.getRouteInfo(), Api.getUniqueDeviceId(), ApiOnline.goOnline(), ApiGps.gpsSwitchOn(), ApiPoi.highlightPoi(), Api.isApplicationInForeground(), Api.isApplicationRunning(), Api.isAppRunning(), ApiNavigation.loadComputedRoute(), ApiMaps.loadExternalFile(), ApiMaps.loadGFFile(), ApiNavigation.loadOFGRoute(), ApiLocation.locationFromAddress(), ApiLocation.locationFromAddressEx(), ApiPoi.makeUserPoiVisible(), ApiMaps.moveBitmap(), ApiNavigation.navigateToAddress(), ApiOnline.onlineServicesLogin(), ApiOnline.onlineServicesSettings(), ApiMenu.onMenuCommand(), ApiTts.playSound(), Api.registerCallback(), ApiMaps.reloadExternalFiles(), ApiMaps.removeAllBitmaps(), ApiMaps.removeBitmap(), ApiFavorites.removeFavoriteFromList(), ApiOnline.removeTMCEvent(), ApiNavigation.saveComputedRoute(), ApiNavigation.saveOFGRoute(), ApiOptions.setDefaultValues(), ApiPoi.setPoiWarning(), ApiItinerary.setRoute(), Api.setSoundMutex(), Api.show(), ApiMaps.showBitmap(), ApiMaps.showCoordinatesOnMap(), ApiLocation.showHierarchyDialog(), ApiDialog.showMessage(), ApiMaps.showRectangleOnMap(), ApiItinerary.skipNextWaypoint(), ApiNavigation.startNavigation(), ApiNavigation.stopNavigation(), ApiMaps.switchMap(), ApiMaps.unloadExternalFile(), ApiMaps.unloadGFFile(), and Api.unregisterCallback().
|
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 |
Get sdk version.
|
package |
Referenced by ApiMaps.addBitmapToMap(), ApiItinerary.addEntryToItinerary(), ApiItinerary.addItinerary(), ApiPoi.addPoi(), ApiPoi.addPoiCategory(), ApiFavorites.addStopOffPointsToFavorites(), ApiHistory.addStopOffPointToHistory(), ApiOnline.addTMCEvent(), Api.bringApplicationToBackground(), ApiOptions.changeApplicationOptions(), ApiOnline.clearTMCTable(), ApiDialog.closeDialogs(), ApiItinerary.deleteEntryInItinerary(), ApiItinerary.deleteItinerary(), ApiPoi.deletePoi(), ApiPoi.deletePoiCategory(), Api.endApplication(), ApiPoi.findNearbyPoi(), ApiPoi.findNearbyPoiList(), ApiDialog.flashMessage(), ApiNavigation.getActualGpsPosition(), ApiLocation.getAddressList(), Api.getApplicationVersion(), ApiLocation.getCoordinatesFromOffset(), ApiInfo.getCurrentSpeedLimit(), ApiFavorites.getFavoritesList(), ApiHistory.getHistoryList(), ApiItinerary.getItineraryList(), ApiLocation.getLocationAddressInfo(), ApiLocation.getLocationRoadInfo(), Api.getMapVersion(), ApiInfo.getNextInstruction(), ApiNavigation.getOFGRouteStatus(), ApiPoi.getPoiCategoryList(), ApiPoi.getPoiList(), ApiNavigation.getRouteInfo(), Api.getUniqueDeviceId(), ApiOnline.goOnline(), ApiGps.gpsSwitchOn(), ApiPoi.highlightPoi(), Api.isApplicationInForeground(), Api.isApplicationRunning(), Api.isAppRunning(), ApiNavigation.loadComputedRoute(), ApiMaps.loadExternalFile(), ApiMaps.loadGFFile(), ApiNavigation.loadOFGRoute(), ApiLocation.locationFromAddress(), ApiLocation.locationFromAddressEx(), ApiPoi.makeUserPoiVisible(), ApiMaps.moveBitmap(), ApiNavigation.navigateToAddress(), ApiOnline.onlineServicesLogin(), ApiOnline.onlineServicesSettings(), ApiMenu.onMenuCommand(), ApiTts.playSound(), Api.registerCallback(), ApiMaps.reloadExternalFiles(), ApiMaps.removeAllBitmaps(), ApiMaps.removeBitmap(), ApiFavorites.removeFavoriteFromList(), ApiOnline.removeTMCEvent(), ApiNavigation.saveComputedRoute(), ApiNavigation.saveOFGRoute(), ApiOptions.setDefaultValues(), ApiPoi.setPoiWarning(), ApiItinerary.setRoute(), Api.setSoundMutex(), Api.show(), ApiMaps.showBitmap(), ApiMaps.showCoordinatesOnMap(), ApiLocation.showHierarchyDialog(), ApiDialog.showMessage(), ApiMaps.showRectangleOnMap(), ApiItinerary.skipNextWaypoint(), ApiNavigation.startNavigation(), ApiNavigation.stopNavigation(), ApiMaps.switchMap(), ApiMaps.unloadExternalFile(), ApiMaps.unloadGFFile(), and Api.unregisterCallback().
|
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 |
Initializes the Api class.
context | the application |
pckgName | the package name of the app connecting to |
className | the class name of service, can be either CLASS_DRIVE or CLASS_AURA |
callback | the callback to retrieve events from remote app |
|
static |
Returns if the application is active in foreground or idle in background.
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 |
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.
RemoteException | the remote exception |
References Api.getInstance(), and Api.getService().
void setOnSoundListener | ( | OnSoundListener | listener | ) |
Sets the on sound listener.
listener | the new on sound listener |
void setOnTtsListener | ( | OnTtsListener | listener | ) |
Sets the on tts listener.
If set, Navigation will not play TTS sound.
listener | the new on tts listener |
void setSoundMutex | ( | boolean | mutex | ) | throws RemoteException |
Sets the sound mutex.
If set to true, Navigation will wait for false to play sound.
mutex | set true before playing sound, false when stopped |
RemoteException | the remote exception |
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 unregisterCallback | ( | ) | throws RemoteException |
Unregister callback.
RemoteException | the remote exception |
References Api.getInstance(), and Api.getService().
|
static |
|
static |