GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTCTripModelOptions
Object that for configuring the GMTCTripModel
.
-
Returns the current refresh time interval between the repeated trip info polling from server.
Declaration
Swift
var autoRefreshTimeInterval: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval autoRefreshTimeInterval;
-
Returns the request header that will be appended to each trip info polling call.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) GMTSRequestHeader *tripRequestHeader;
-
Initializes the instance.
Declaration
Swift
init(autoRefreshTimeInterval: TimeInterval, trip tripRequestHeader: GMTSRequestHeader?)
Objective-C
- (nonnull instancetype)
initWithAutoRefreshTimeInterval:(NSTimeInterval)autoRefreshTimeInterval
tripRequestHeader:
(nullable GMTSRequestHeader *)tripRequestHeader;
Parameters
autoRefreshTimeInterval
|
A refresh time inverval between the repeated trip info polling.
|
tripRequestHeader
|
A trip request header that will be appended to each trip info polling
call.
|
-
Initializes the instance. Calling this is equivalent to calling
initWithAutoRefreshTimeInterval:0.0 tripRequestHeader: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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eGMTCTripModelOptions configures the GMTCTripModel for managing trip information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eautoRefreshTimeInterval\u003c/code\u003e specifies the time interval for automatically refreshing trip data from the server.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etripRequestHeader\u003c/code\u003e defines the header information that will be included in each trip data request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einitWithAutoRefreshTimeInterval:tripRequestHeader:\u003c/code\u003e method initializes an instance, setting both the refresh interval and request header.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einit\u003c/code\u003e method provides a convenience initializer, defaulting the refresh interval to 0.0 and the trip request header to \u003ccode\u003enil\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTCTripModelOptions\n====================\n\n @interface GMTCTripModelOptions : ../Classes/GMTSRequestOptions.html \u003cNSMutableCopying\u003e\n\nObject that for configuring the [GMTCTripModel](../Classes/GMTCTripModel.html).\n- `\n ``\n ``\n `\n\n ### [autoRefreshTimeInterval](#/c:objc(cs)GMTCTripModelOptions(py)autoRefreshTimeInterval)\n\n `\n ` \n Returns the current refresh time interval between the repeated trip info polling from server. \n\n #### Declaration\n\n Swift \n\n var autoRefreshTimeInterval: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval autoRefreshTimeInterval;\n\n- `\n ``\n ``\n `\n\n ### [tripRequestHeader](#/c:objc(cs)GMTCTripModelOptions(py)tripRequestHeader)\n\n `\n ` \n Returns the request header that will be appended to each trip info polling call. \n\n #### Declaration\n\n Swift \n\n var tripRequestHeader: ../Classes/GMTSRequestHeader.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMTSRequestHeader.html *tripRequestHeader;\n\n- `\n ``\n ``\n `\n\n ### [-initWithAutoRefreshTimeInterval:tripRequestHeader:](#/c:objc(cs)GMTCTripModelOptions(im)initWithAutoRefreshTimeInterval:tripRequestHeader:)\n\n `\n ` \n Initializes the instance. \n\n #### Declaration\n\n Swift \n\n init(autoRefreshTimeInterval: TimeInterval, trip tripRequestHeader: ../Classes/GMTSRequestHeader.html?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAutoRefreshTimeInterval:(NSTimeInterval)autoRefreshTimeInterval\n tripRequestHeader:\n (nullable ../Classes/GMTSRequestHeader.html *)tripRequestHeader;\n\n #### Parameters\n\n |---------------------------------|-----------------------------------------------------------------------------|\n | ` `*autoRefreshTimeInterval*` ` | A refresh time inverval between the repeated trip info polling. |\n | ` `*tripRequestHeader*` ` | A trip request header that will be appended to each trip info polling call. |\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMTCTripModelOptions(im)init)\n\n `\n ` \n Initializes the instance. Calling this is equivalent to calling\n `initWithAutoRefreshTimeInterval:0.0 tripRequestHeader:nil`. \n\n #### Declaration\n\n Swift \n\n convenience init()\n\n Objective-C \n\n - (nonnull instancetype)init;"]]