MBNNRoadObjectEnterExitInfo.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNRoadObjectType.h>
  4. NS_SWIFT_NAME(RoadObjectEnterExitInfo)
  5. __attribute__((visibility ("default")))
  6. @interface MBNNRoadObjectEnterExitInfo : 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)initWithRoadObjectId:(nonnull NSString *)roadObjectId
  12. enterFromStartOrExitFromEnd:(BOOL)enterFromStartOrExitFromEnd
  13. type:(MBNNRoadObjectType)type;
  14. /** road object id */
  15. @property (nonatomic, readonly, nonnull, copy) NSString *roadObjectId;
  16. /**
  17. * Lines and subgraphs might be entered and exited not only through
  18. * its enters and exits, but also from edges in the middle (for
  19. * instance, if the line intersects road crosses). This field
  20. * describes the enter(exit) was perfromed via the corresponded
  21. * first(last) edge or via any other edge in the middle.
  22. *
  23. * `true` if the object was entered via it's start for
  24. * `onRoadObjectEnter` or if object was exited via it's end for
  25. * `onRoadObjectExit`, `false` otherwise. Applies to lines and
  26. * subgraphs, for other objects value is undefined.
  27. */
  28. @property (nonatomic, readonly, getter=isEnterFromStartOrExitFromEnd) BOOL enterFromStartOrExitFromEnd;
  29. /** type of road object */
  30. @property (nonatomic, readonly) MBNNRoadObjectType type;
  31. @end