GoogleRidesharingConsumer Framework Reference

  • 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

@interface GMTCMutableTripModelOptions : GMTCTripModelOptions

Mutable 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 GMTCMutableTripModelOptions based on the given instance of GMTCTripModelOptions.

    Declaration

    Swift

    convenience init(options: GMTCTripModelOptions?)

    Objective-C

    + (nonnull instancetype)mutableTripModelOptionsWithOptions:
        (nullable GMTCTripModelOptions *)options;

    Parameters

    options

    The original instance of GMTCTripModelOptions, based on where the mutable data will be constructed.