SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSiOSGps.h
Go to the documentation of this file.
1 #ifndef SENS_IOSGPS_H
2 #define SENS_IOSGPS_H
3 
4 #include <SENSGps.h>
5 #import "SENSiOSGpsDelegate.h"
6 
7 class SENSiOSGps : public SENSGps
8 {
9 public:
10  SENSiOSGps();
11 
12  bool start() override;
13  void stop() override;
14  void askPermission();
15 
16 private:
17  //callback from delegate
18  void updateLocation(double latitudeDEG,
19  double longitudeDEG,
20  double altitudeM,
21  double accuracyM);
22  //callback for permission update
23  void updatePermission(bool granted);
24 
26 };
27 
28 #endif
bool start() override
Definition: SENSiOSGps.mm:12
void updatePermission(bool granted)
void stop() override
Definition: SENSiOSGps.mm:23
void updateLocation(double latitudeDEG, double longitudeDEG, double altitudeM, double accuracyM)
Definition: SENSiOSGps.mm:29
SENSiOSGpsDelegate * _gpsDelegate
Definition: SENSiOSGps.h:25
void askPermission()
Definition: SENSiOSGps.mm:37