MBNNRoadObjectDistance.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNRoadObjectType.h>
  4. @class MBNNRoadObjectDistanceInfo;
  5. /**
  6. * Represents the current distance to a road object.
  7. * The structure is immutable, to get an updated info you should get a new instance of the info
  8. * via ElectronicHorizonObserver.
  9. */
  10. NS_SWIFT_NAME(RoadObjectDistance)
  11. __attribute__((visibility ("default")))
  12. @interface MBNNRoadObjectDistance : NSObject
  13. // This class provides custom init which should be called
  14. - (nonnull instancetype)init NS_UNAVAILABLE;
  15. // This class provides custom init which should be called
  16. + (nonnull instancetype)new NS_UNAVAILABLE;
  17. - (nonnull instancetype)initWithRoadObjectId:(nonnull NSString *)roadObjectId
  18. type:(MBNNRoadObjectType)type
  19. distanceInfo:(nonnull MBNNRoadObjectDistanceInfo *)distanceInfo;
  20. /** id of road object */
  21. @property (nonatomic, readonly, nonnull, copy) NSString *roadObjectId;
  22. /** type of road object */
  23. @property (nonatomic, readonly) MBNNRoadObjectType type;
  24. /** distance info */
  25. @property (nonatomic, readonly, nonnull) MBNNRoadObjectDistanceInfo *distanceInfo;
  26. @end