Package com.mapfactor.sdk.navigation
Interface EmergencyModeManager
public interface EmergencyModeManager
Emergency mode manager
- Since:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Emergency mode current statusstatic interface
Emergency mode status listener -
Method Summary
Modifier and TypeMethodDescriptionboolean
activateEmergencyMode
(boolean immediately, boolean deactivateInDestination) Emergency mode activation.void
Emergency mode deactivationvoid
getEmergencyModeStatus
(EmergencyModeManager.EmergencyModeStatusListener emergencyModeStatusListener) Get emergency mode active status
-
Method Details
-
activateEmergencyMode
boolean activateEmergencyMode(boolean immediately, boolean deactivateInDestination) Emergency mode activation.- Parameters:
immediately
- true to activate emergency mode now resulting in immediate route recalculation, false to activate emergency mode after diverting from current navigation route. If there is no navigation active right now, emergency mode will be activated on navigation start regardless of this parameter value.deactivateInDestination
- true to deactivate after reaching the destination or stopping the navigation, false to leave active for next navigation- Returns:
- false when emergency mode is not licensed, true otherwise
- Since:
- 1.0
-
deactivateEmergencyMode
void deactivateEmergencyMode()Emergency mode deactivation- Since:
- 1.0
-