GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTSVehicleAttributeKeyValuePair
Object that contains a vehicle attribute key/value pair.
-
Declaration
Swift
var key: String { get }
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull key;
-
Declaration
Swift
var value: String { get }
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull value;
-
Initialization of the object.
Declaration
Swift
init(key: String, value: String)
Objective-C
- (nonnull instancetype)initWithKey:(nonnull NSString *)key
value:(nonnull NSString *)value;
Parameters
key
|
The key, should not be nil.
|
value
|
The value, should not be nil.
|
-
Declaration
Objective-C
- (nonnull instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["`GMTSVehicleAttributeKeyValuePair` is an object representing a key-value pair for vehicle attributes."],["The `key` property is a read-only string representing the attribute's key."],["The `value` property is a read-only string representing the attribute's value."],["The `initWithKey:value:` method is used to initialize the object with a key and a value, both of which are required and non-nil strings."],["The `init` method is unavailable and will return `nil`, instructing the use of `initWithKey:value:` instead."]]],[]]