AI-generated Key Takeaways
-
GMSDatasetFeaturerepresents a feature from a dataset and always has a feature type ofGMSFeatureTypeDataset. -
Each
GMSDatasetFeatureis associated with a specific dataset, identified by itsdatasetID. -
Features contain key-value pairs in
datasetAttributesto store their properties. -
Although an initializer is provided for testing,
GMSDatasetFeatureinstances should ideally be created by the SDK in production environments.
GMSDatasetFeature
@interface GMSDatasetFeature : NSObject <GMSFeature>An interface representing a feature from a dataset.
The featureType of a DatasetFeature will always be GMSFeatureTypeDataset.
-
Dataset id of the dataset that this feature belongs to.
Declaration
Swift
var datasetID: String { get }Objective-C
@property (nonatomic, readonly) NSString *_Nonnull datasetID; -
Key-value mapping of the attributes associated with the feature in the dataset.
Declaration
Swift
var datasetAttributes: [String : String] { get }Objective-C
@property (nonatomic, readonly) NSDictionary<NSString *, NSString *> *_Nonnull datasetAttributes; -
Create a dataset feature instance for testing uses.
This method should be used for testing purposes only;
GMSDatasetFeatureinstances should only be created by the SDK in production code.Declaration
Swift
init(datasetID: String, datasetAttributes: [String : String] = [:])Objective-C
- (nonnull instancetype)initWithDatasetID:(nonnull NSString *)datasetID datasetAttributes: (nonnull NSDictionary<NSString *, NSString *> *) datasetAttributes; -
Unavailable
Declaration
Objective-C
- (instancetype)init NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE;