MBMQueriedFeature.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBXFeature;
  4. /**
  5. * Represents query result that is returned in QueryFeaturesCallback.
  6. * @see `queryRenderedFeatures` or `querySourceFeatures`
  7. */
  8. NS_SWIFT_NAME(QueriedFeature)
  9. __attribute__((visibility ("default")))
  10. @interface MBMQueriedFeature : NSObject
  11. // This class provides custom init which should be called
  12. - (nonnull instancetype)init NS_UNAVAILABLE;
  13. // This class provides custom init which should be called
  14. + (nonnull instancetype)new NS_UNAVAILABLE;
  15. - (nonnull instancetype)initWithFeature:(nonnull MBXFeature *)feature
  16. source:(nonnull NSString *)source
  17. sourceLayer:(nullable NSString *)sourceLayer
  18. state:(nonnull id)state NS_REFINED_FOR_SWIFT;
  19. /** Feature returned by the query. */
  20. @property (nonatomic, readonly, nonnull) MBXFeature *feature NS_REFINED_FOR_SWIFT;
  21. /** Source id for a queried feature. */
  22. @property (nonatomic, readonly, nonnull, copy) NSString *source;
  23. /**
  24. * Source layer id for a queried feature. May be null if source does not support layers, e.g., 'geojson' source,
  25. * or when data provided by the source is not layered.
  26. */
  27. @property (nonatomic, readonly, nullable, copy) NSString *sourceLayer;
  28. /**
  29. * Feature state for a queried feature. Type of the value is an Object.
  30. * @see `setFeatureState` and `getFeatureState`
  31. */
  32. @property (nonatomic, readonly, nonnull, copy) id state;
  33. @end