Android Java SDK for Sygic 3D
ApiGps Class Reference

Static Public Member Functions

static void gpsSwitchOn (boolean switchOn, int maxTime) throws GeneralException
 Turns Navigation GPS module ON and OFF. More...
 

Member Function Documentation

◆ gpsSwitchOn()

static void gpsSwitchOn ( boolean  switchOn,
int  maxTime 
) throws GeneralException
static

Turns Navigation GPS module ON and OFF.

Parameters
switchOnDetermines whether GpsSwitchOn turns GPS module ON or OFF.
  • true - GpsSwitchOn turns GPS module ON.
  • false - GpsSwitchOn turns GPS module OFF.
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().