iPhone_Sensors.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. enum LocationServiceStatus
  3. {
  4. kLocationServiceStopped,
  5. kLocationServiceInitializing,
  6. kLocationServiceRunning,
  7. kLocationServiceFailed
  8. };
  9. class LocationService
  10. {
  11. public:
  12. static void SetDesiredAccuracy(float val);
  13. static float GetDesiredAccuracy();
  14. static void SetDistanceFilter(float val);
  15. static float GetDistanceFilter();
  16. static bool IsServiceEnabledByUser();
  17. static void StartUpdatingLocation();
  18. static void StopUpdatingLocation();
  19. static void SetHeadingUpdatesEnabled(bool enabled);
  20. static bool IsHeadingUpdatesEnabled();
  21. static LocationServiceStatus GetLocationStatus();
  22. static LocationServiceStatus GetHeadingStatus();
  23. static bool IsHeadingAvailable();
  24. };
  25. #if UNITY_TVOS_SIMULATOR_FAKE_REMOTE
  26. void ReportSimulatedRemoteButtonPress(UIPressType type);
  27. void ReportSimulatedRemoteButtonRelease(UIPressType type);
  28. void ReportSimulatedRemoteTouchesBegan(UIView* view, NSSet* touches);
  29. void ReportSimulatedRemoteTouchesMoved(UIView* view, NSSet* touches);
  30. void ReportSimulatedRemoteTouchesEnded(UIView* view, NSSet* touches);
  31. #endif