GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTCTripRequest
@interface GMTCTripRequest : GMTSRequest <NSCopying, NSMutableCopying>
A request object for specifying parameters to get an active trip.
-
Name of the target trip. The value will be an empty string(@“”) if set as nil.
Declaration
Swift
var tripName: String! { get }
Objective-C
@property (nonatomic, copy, readonly, null_resettable) NSString *tripName;
-
Refresh time interval of the trip request.
Declaration
Swift
var autoRefreshTimeInterval: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval autoRefreshTimeInterval;
-
Declaration
Swift
init(requestHeader: GMTSRequestHeader?, tripName: String?, autoRefreshTimeInterval: TimeInterval)
Objective-C
- (nonnull instancetype)
initWithRequestHeader:(nullable GMTSRequestHeader *)requestHeader
tripName:(nullable NSString *)tripName
autoRefreshTimeInterval:(NSTimeInterval)autoRefreshTimeInterval;
Parameters
requestHeader
|
The header object of the request.
|
tripName
|
Name of trip, if set as nil, the property tripName getter will return @“”.
|
autoRefreshTimeInterval
|
The refresh time interval of the trip request.
|
-
Use -initWithRequestHeader:providerId:tripId:autoRefreshTimeInterval:
instead.
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\u003e\u003ccode\u003eGMTCTripRequest\u003c/code\u003e is a request object used to specify parameters for retrieving an active trip.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etripName\u003c/code\u003e property specifies the target trip's name, and it defaults to an empty string if set to nil.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eautoRefreshTimeInterval\u003c/code\u003e property defines the refresh time interval for the trip request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e-initWithRequestHeader:tripName:autoRefreshTimeInterval:\u003c/code\u003e method initializes a \u003ccode\u003eGMTCTripRequest\u003c/code\u003e object with a request header, trip name, and refresh time interval.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e-init\u003c/code\u003e method is unavailable, and the \u003ccode\u003e-initWithRequestHeader:providerId:tripId:autoRefreshTimeInterval:\u003c/code\u003e method should be used instead.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTCTripRequest\n===============\n\n @interface GMTCTripRequest : ../Classes/GMTSRequest.html \u003cNSCopying, NSMutableCopying\u003e\n\nA request object for specifying parameters to get an active trip.\n- `\n ``\n ``\n `\n\n ### [tripName](#/c:objc(cs)GMTCTripRequest(py)tripName)\n\n `\n ` \n Name of the target trip. The value will be an empty string(@\"\") if set as nil. \n\n #### Declaration\n\n Swift \n\n var tripName: String! { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, null_resettable) NSString *tripName;\n\n- `\n ``\n ``\n `\n\n ### [autoRefreshTimeInterval](#/c:objc(cs)GMTCTripRequest(py)autoRefreshTimeInterval)\n\n `\n ` \n Refresh time interval of the trip request. \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 ### [-initWithRequestHeader:tripName:autoRefreshTimeInterval:](#/c:objc(cs)GMTCTripRequest(im)initWithRequestHeader:tripName:autoRefreshTimeInterval:)\n\n `\n ` \n Initializes the object. \n\n #### Declaration\n\n Swift \n\n init(requestHeader: ../Classes/GMTSRequestHeader.html?, tripName: String?, autoRefreshTimeInterval: TimeInterval)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithRequestHeader:(nullable ../Classes/GMTSRequestHeader.html *)requestHeader\n tripName:(nullable NSString *)tripName\n autoRefreshTimeInterval:(NSTimeInterval)autoRefreshTimeInterval;\n\n #### Parameters\n\n |---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*requestHeader*` ` | The header object of the request. |\n | ` `*tripName*` ` | Name of trip, if set as nil, the property [tripName](../Classes/GMTCTripRequest.html#/c:objc(cs)GMTCTripRequest(py)tripName) getter will return @\"\". |\n | ` `*autoRefreshTimeInterval*` ` | The refresh time interval of the trip request. |\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMTCTripRequest(im)init)\n\n `\n ` \n Unavailable \n Use `-initWithRequestHeader:providerId:tripId:autoRefreshTimeInterval:` instead. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]