GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
-
Sets or gets the current refresh time interval between the repeated trip info polling from
server.
Declaration
Swift
var autoRefreshTimeInterval: TimeInterval { get set }
Objective-C
@property (nonatomic) NSTimeInterval autoRefreshTimeInterval;
-
Sets or gets the request header that will be appended to each trip info polling call.
Declaration
Objective-C
@property (nonatomic, copy, nullable) GMTSRequestHeader *tripRequestHeader;
-
Creates and returns an instance of GMTCMutableTripModelOptions
based on the given instance of
GMTCTripModelOptions
.
Declaration
Objective-C
+ (nonnull instancetype)mutableTripModelOptionsWithOptions:
(nullable GMTCTripModelOptions *)options;
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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTCMutableTripModelOptions\u003c/code\u003e is a mutable version of \u003ccode\u003eGMTCTripModelOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eautoRefreshTimeInterval\u003c/code\u003e allows setting and getting the time interval for refreshing trip information from the server.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etripRequestHeader\u003c/code\u003e enables setting and retrieving the header to be included in each trip info polling call.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emutableTripModelOptionsWithOptions:\u003c/code\u003e creates a \u003ccode\u003eGMTCMutableTripModelOptions\u003c/code\u003e instance based on an existing \u003ccode\u003eGMTCTripModelOptions\u003c/code\u003e instance.\u003c/p\u003e\n"]]],["`GMTCMutableTripModelOptions` allows modification of trip model options. It manages the `autoRefreshTimeInterval`, which sets the time between trip info polls from the server. It also handles the `tripRequestHeader`, a request header appended to each polling call. A new `GMTCMutableTripModelOptions` instance can be created via the `mutableTripModelOptionsWithOptions:` method, based on an existing `GMTCTripModelOptions` instance, copying its original configuration.\n"],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTCMutableTripModelOptions\n===========================\n\n @interface GMTCMutableTripModelOptions : ../Classes/GMTCTripModelOptions.html\n\nMutable version of [GMTCTripModelOptions](../Classes/GMTCTripModelOptions.html).\n- `\n ``\n ``\n `\n\n ### [autoRefreshTimeInterval](#/c:objc(cs)GMTCMutableTripModelOptions(py)autoRefreshTimeInterval)\n\n `\n ` \n Sets or gets the current refresh time interval between the repeated trip info polling from\n server. \n\n #### Declaration\n\n Swift \n\n var autoRefreshTimeInterval: TimeInterval { get set }\n\n Objective-C \n\n @property (nonatomic) NSTimeInterval autoRefreshTimeInterval;\n\n- `\n ``\n ``\n `\n\n ### [tripRequestHeader](#/c:objc(cs)GMTCMutableTripModelOptions(py)tripRequestHeader)\n\n `\n ` \n Sets or gets the request header that will be appended to each trip info polling call. \n\n #### Declaration\n\n Swift \n\n @NSCopying var tripRequestHeader: ../Classes/GMTSRequestHeader.html? { get set }\n\n Objective-C \n\n @property (nonatomic, copy, nullable) ../Classes/GMTSRequestHeader.html *tripRequestHeader;\n\n- `\n ``\n ``\n `\n\n ### [+mutableTripModelOptionsWithOptions:](#/c:objc(cs)GMTCMutableTripModelOptions(cm)mutableTripModelOptionsWithOptions:)\n\n `\n ` \n Creates and returns an instance of `GMTCMutableTripModelOptions` based on the given instance of\n [GMTCTripModelOptions](../Classes/GMTCTripModelOptions.html). \n\n #### Declaration\n\n Swift \n\n convenience init(options: ../Classes/GMTCTripModelOptions.html?)\n\n Objective-C \n\n + (nonnull instancetype)mutableTripModelOptionsWithOptions:\n (nullable ../Classes/GMTCTripModelOptions.html *)options;\n\n #### Parameters\n\n |-----------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*options*` ` | The original instance of [GMTCTripModelOptions](../Classes/GMTCTripModelOptions.html), based on where the mutable data will be constructed. |"]]