GMTCTripModelOptions
@interface GMTCTripModelOptions : GMTSRequestOptions <NSMutableCopying>
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
Swift
var tripRequestHeader: GMTSRequestHeader? { get }
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
Swift
convenience init()
Objective-C
- (nonnull instancetype)init;