AI-generated Key Takeaways
-
GMTCMutableTripModelOptionsis a mutable version ofGMTCTripModelOptions. -
autoRefreshTimeIntervalallows setting and getting the time interval for refreshing trip information from the server. -
tripRequestHeaderenables setting and retrieving the header to be included in each trip info polling call. -
mutableTripModelOptionsWithOptions:creates aGMTCMutableTripModelOptionsinstance based on an existingGMTCTripModelOptionsinstance.
GMTCMutableTripModelOptions
@interface GMTCMutableTripModelOptions : GMTCTripModelOptionsMutable version of GMTCTripModelOptions.
-
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
Swift
@NSCopying var tripRequestHeader: GMTSRequestHeader? { get set }Objective-C
@property (nonatomic, copy, nullable) GMTSRequestHeader *tripRequestHeader; -
Creates and returns an instance of
GMTCMutableTripModelOptionsbased on the given instance ofGMTCTripModelOptions.Declaration
Swift
convenience init(options: GMTCTripModelOptions?)Objective-C
+ (nonnull instancetype)mutableTripModelOptionsWithOptions: (nullable GMTCTripModelOptions *)options;Parameters
optionsThe original instance of
GMTCTripModelOptions, based on where the mutable data will be constructed.