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

Turns Navigation GPS module ON and OFF.

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.
GeneralExceptionthe general exception

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