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;
GMSDatasetFeature
instances 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;