MBMGeoJSONSourceData

@interface MBMGeoJSONSourceData : NSObject

- (nonnull instancetype)initWithValue:(nonnull id)value __attribute__((deprecated("Please use: '+from{TypeName}:' instead.")));

+ (nonnull instancetype)fromGeometry:(nonnull MBXGeometry *)value;
+ (nonnull instancetype)fromFeature:(nonnull MBXFeature *)value;
+ (nonnull instancetype)fromNSArray:(nonnull NSArray<MBXFeature *> *)value;
+ (nonnull instancetype)fromNSString:(nonnull NSString *)value;

- (BOOL)isGeometry;
- (BOOL)isFeature;
- (BOOL)isNSArray;
- (BOOL)isNSString;

- (nonnull MBXGeometry *)getGeometry __attribute((ns_returns_retained));
- (nonnull MBXFeature *)getFeature __attribute((ns_returns_retained));
- (nonnull NSArray<MBXFeature *> *)getNSArray __attribute((ns_returns_retained));
- (nonnull NSString *)getNSString __attribute((ns_returns_retained));

@property (nonatomic, nonnull) id value;

@property (nonatomic, readonly) MBMGeoJSONSourceDataType type;

@end

Undocumented

  • Deprecated

    Please use: ‘+from{TypeName}:’ instead.

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(nonnull id)value __attribute__((deprecated("Please use: '+from{TypeName}:' instead.")));

    Swift

    init(value: Any)
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)fromGeometry:(nonnull MBXGeometry *)value;

    Swift

    class func fromGeometry(_ value: MBXGeometry) -> Self
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)fromFeature:(nonnull MBXFeature *)value;

    Swift

    class func fromFeature(_ value: MBXFeature) -> Self
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)fromNSArray:(nonnull NSArray<MBXFeature *> *)value;

    Swift

    class func fromNSArray(_ value: [MBXFeature]) -> Self
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)fromNSString:(nonnull NSString *)value;

    Swift

    class func fromNSString(_ value: String) -> Self
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isGeometry;

    Swift

    func isGeometry() -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isFeature;

    Swift

    func isFeature() -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isNSArray;

    Swift

    func isNSArray() -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isNSString;

    Swift

    func isNSString() -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (nonnull MBXGeometry *)getGeometry __attribute((ns_returns_retained));

    Swift

    func getGeometry() -> MBXGeometry
  • Undocumented

    Declaration

    Objective-C

    - (nonnull MBXFeature *)getFeature __attribute((ns_returns_retained));

    Swift

    func getFeature() -> MBXFeature
  • Undocumented

    Declaration

    Objective-C

    - (nonnull NSArray<MBXFeature *> *)getNSArray __attribute((ns_returns_retained));

    Swift

    func getNSArray() -> [MBXFeature]
  • Undocumented

    Declaration

    Objective-C

    - (nonnull NSString *)getNSString __attribute((ns_returns_retained));

    Swift

    func getNSString() -> String
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nonnull) id value

    Swift

    var value: Any { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) MBMGeoJSONSourceDataType type

    Swift

    var type: GeoJSONSourceDataType { get }