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-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."],[[["`GMTCMutableTripModelOptions` is a mutable version of `GMTCTripModelOptions`."],["`autoRefreshTimeInterval` allows setting and getting the time interval for refreshing trip information from the server."],["`tripRequestHeader` enables setting and retrieving the header to be included in each trip info polling call."],["`mutableTripModelOptionsWithOptions:` creates a `GMTCMutableTripModelOptions` instance based on an existing `GMTCTripModelOptions` instance."]]],["`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"]]