MBNNFixLocation.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <CoreLocation/CoreLocation.h>
  4. NS_SWIFT_NAME(FixLocation)
  5. __attribute__((visibility ("default")))
  6. @interface MBNNFixLocation : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate
  12. monotonicTimestampNanoseconds:(int64_t)monotonicTimestampNanoseconds
  13. time:(nonnull NSDate *)time
  14. speed:(nullable NSNumber *)speed
  15. bearing:(nullable NSNumber *)bearing
  16. altitude:(nullable NSNumber *)altitude
  17. accuracyHorizontal:(nullable NSNumber *)accuracyHorizontal
  18. provider:(nullable NSString *)provider
  19. bearingAccuracy:(nullable NSNumber *)bearingAccuracy
  20. speedAccuracy:(nullable NSNumber *)speedAccuracy
  21. verticalAccuracy:(nullable NSNumber *)verticalAccuracy
  22. extras:(nonnull NSDictionary<NSString *, id> *)extras
  23. isMock:(BOOL)isMock;
  24. /** A coordinate value as defined by mapbox-bindgen (lon, lat) */
  25. @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
  26. /**
  27. * Monotonic(i.e. every new timestamp is greater than previous one) timestamp corresponding to this location.
  28. * If on some platform monotonic time is not provided by system then using of non-monotonic clock is allowed.
  29. * If this value is greater than zero getStatus(u64) must be used instead of getStatus(timestamp).
  30. * Measured in nanoseconds.
  31. */
  32. @property (nonatomic, readonly) int64_t monotonicTimestampNanoseconds;
  33. /** A timestamp value as defined by mapbox-bindgen */
  34. @property (nonatomic, readonly, nonnull) NSDate *time;
  35. /** The speed at which the device is moving in meters/second */
  36. @property (nonatomic, readonly, nullable) NSNumber *speed;
  37. /**
  38. * The direction in which the device is traveling in degrees relative to due north.
  39. * Valid range is [0, 360]. 360 is treated as North(i.e. 0).
  40. * Other values are just ignored(we treat it as if null was passed).
  41. */
  42. @property (nonatomic, readonly, nullable) NSNumber *bearing;
  43. /** The altitude of the device in meters above the WGS84 ellipsoid */
  44. @property (nonatomic, readonly, nullable) NSNumber *altitude;
  45. /** The estimated horizontal accuracy of the location, radial, in meters */
  46. @property (nonatomic, readonly, nullable) NSNumber *accuracyHorizontal;
  47. /** The provider of this location */
  48. @property (nonatomic, readonly, nullable, copy) NSString *provider;
  49. /** The estimated bearing accuracy of this location, in degrees */
  50. @property (nonatomic, readonly, nullable) NSNumber *bearingAccuracy;
  51. /** The estimated speed accuracy of this location, in meters per second */
  52. @property (nonatomic, readonly, nullable) NSNumber *speedAccuracy;
  53. /** The estimated vertical accuracy of this location, in meters */
  54. @property (nonatomic, readonly, nullable) NSNumber *verticalAccuracy;
  55. /**
  56. * Any extra values from location provider(e.g. Location#getExtras() contents on Android)
  57. * At the moment the following flags are in use:
  58. * `isDR: boolean` - should be `true` if this location is a result of dead reckoning
  59. * and can be potentially not as precise as usually, used on automotive profile only.
  60. */
  61. @property (nonatomic, readonly, nonnull, copy) NSDictionary<NSString *, id> *extras;
  62. /**
  63. * if location was a result of mock location provider.
  64. * If this value is `true` - teleport telemetry event will not be sent
  65. * (to keep telemetry events clean from repeated fake mock-provided events)
  66. */
  67. @property (nonatomic, readonly, getter=isIsMock) BOOL isMock;
  68. @end