GoogleRidesharingConsumer Framework Reference

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;
  • Initializes the object.

    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.

  • Unavailable

    Use -initWithRequestHeader:providerId:tripId:autoRefreshTimeInterval: instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;