Classes
The following classes are available globally.
-
An immutable object representing the context needed to fetch an auth token.
Declaration
Swift
class GMTCAuthorizationContext : GMTCImmutableDataObjective-C
@interface GMTCAuthorizationContext : GMTCImmutableData -
Container class for the custom UI options for elements of the GMTCMapView.
Declaration
Swift
class GMTCConsumerMapStyleCoordinator : NSObjectObjective-C
@interface GMTCConsumerMapStyleCoordinator : NSObject -
A base class of immutable data, subclass must implement the
isEqual:andhashof theNSObjectprotocol.Declaration
Swift
class GMTCImmutableData : NSObject, NSCopying, NSSecureCodingObjective-C
@interface GMTCImmutableData : NSObject <NSCopying, NSSecureCoding> -
Declaration
Swift
class GMTCJourneySharingSession : NSObject, GMTCMapViewSessionObjective-C
@interface GMTCJourneySharingSession : NSObject <GMTCMapViewSession> /** Delegate of the current journey sharing session. */ @property(nonatomic, nullable, weak) id<GMTCMapViewSessionDelegate> delegate; /** * Returns the current session state. The possible state can be referenced from * `GMTCMapViewSessionState`. */ @property(nonatomic, readonly) GMTCMapViewSessionState state; /** Returns the host map view of the current session. */ @property(nonatomic, nullable, weak, readonly) GMTCMapView *hostMapView; /** Returns the associated trip session. */ @property(nonatomic, readonly) GMTCTripModel *tripModel; /** * Initializes the session object. * * @param tripModel The target trip request. */ - (instancetype)initWithTripModel:(GMTCTripModel *)tripModel; - (instancetype)init NS_UNAVAILABLE; @end
-
This class represents the main view in the Consumer SDK for iOS. You can use this class to create a customizable map so that your users can use the
consumerMapStylecoordinatorto create custom markers and polylines.Note: You should instantiate this map via the default constructor
[[GMTCMapView alloc] initWithFrame:].GMTCMapViewcan be read and modified only from the main thread, similar toGMSMapViewand all UIKit objects. Calling these methods from another thread results in an exception or undefined behavior.Declaration
Swift
class GMTCMapView : GMSMapViewObjective-C
@interface GMTCMapView : GMSMapView -
Data object that holds custom marker properties from the client application.
Declaration
Swift
class GMTCMarkerStyleOptions : GMTCImmutableData, NSCopying, NSMutableCopyingObjective-C
@interface GMTCMarkerStyleOptions : GMTCImmutableData <NSCopying, NSMutableCopying> -
Mutable data object that holds marker’s customization properties. Note: When applying the style options for a marker with the
GMTCCustomizableMarkerTypeTripVehicletype, you must explicitly set theisFlatproperty to YES. Otherwise, when the map is rotated in 3D mode, the vehicle heading won’t be aligned with the rotated direction.Declaration
Swift
class GMTCMutableMarkerStyleOptions : GMTCMarkerStyleOptionsObjective-C
@interface GMTCMutableMarkerStyleOptions : GMTCMarkerStyleOptions -
Data object that holds polyline customization properties.
Declaration
Swift
class GMTCPolylineStyleOptions : GMTCImmutableData, NSCopying, NSMutableCopyingObjective-C
@interface GMTCPolylineStyleOptions : GMTCImmutableData <NSCopying, NSMutableCopying> -
Mutable data object that holds polyline customization properties.
Declaration
Swift
class GMTCMutablePolylineStyleOptions : GMTCPolylineStyleOptionsObjective-C
@interface GMTCMutablePolylineStyleOptions : GMTCPolylineStyleOptions -
Service class for the Google Consumer Ridesharing SDK for iOS.
Declaration
Swift
class GMTCServices : NSObjectObjective-C
@interface GMTCServices : NSObject -
A class representing a trip session. A trip session will provide trip info update periodically after started, it can be either a ridesharing or a delivery trip, and each trip session is identified by a TripName.
Declaration
Swift
class GMTCTripModel : NSObjectObjective-C
@interface GMTCTripModel : NSObject -
Object that for configuring the
GMTCTripModel.Declaration
Swift
class GMTCTripModelOptions : GMTSRequestOptions, NSMutableCopyingObjective-C
@interface GMTCTripModelOptions : GMTSRequestOptions <NSMutableCopying> -
Mutable version of
GMTCTripModelOptions.Declaration
Swift
class GMTCMutableTripModelOptions : GMTCTripModelOptionsObjective-C
@interface GMTCMutableTripModelOptions : GMTCTripModelOptions -
A request object for specifying parameters to get an active trip.
Declaration
Swift
class GMTCTripRequest : GMTSRequest, NSCopying, NSMutableCopyingObjective-C
@interface GMTCTripRequest : GMTSRequest <NSCopying, NSMutableCopying> -
Mutable version of
GMTCTripRequest.Declaration
Swift
class GMTCMutableTripRequest : GMTCTripRequestObjective-C
@interface GMTCMutableTripRequest : GMTCTripRequest -
Provides methods for accessing trip session(s).
Declaration
Swift
class GMTCTripService : NSObjectObjective-C
@interface GMTCTripService : NSObject -
Object representing the latitude and longitude.
Declaration
Swift
class GMTSLatLng : GMTCImmutableDataObjective-C
@interface GMTSLatLng : GMTCImmutableData -
Request object that is an abstract class.
Declaration
Swift
class GMTSRequest : NSObject, NSCopying, NSMutableCopyingObjective-C
@interface GMTSRequest : NSObject <NSCopying, NSMutableCopying> -
A request header object contains common fields for a request.
Declaration
Swift
class GMTSRequestHeader : GMTCImmutableDataObjective-C
@interface GMTSRequestHeader : GMTCImmutableData -
An object for defining the request options. This is an abstract class. This object can be a part of a
GMTSRequest, to specify extra prarameters of a request.Declaration
Swift
class GMTSRequestOptions : NSObject, NSCopying, NSMutableCopyingObjective-C
@interface GMTSRequestOptions : NSObject <NSCopying, NSMutableCopying> -
A data object that holds the traffic conditions for a contiguous segment of a polyline.
Declaration
Swift
class GMTSSpeedReadingSpan : GMTCImmutableDataObjective-C
@interface GMTSSpeedReadingSpan : GMTCImmutableData -
Object representing information that identifies a terminal location.
Declaration
Swift
class GMTSTerminalLocation : GMTCImmutableDataObjective-C
@interface GMTSTerminalLocation : GMTCImmutableData -
Object representing a timestamp.
Declaration
Swift
class GMTSTimestamp : GMTCImmutableDataObjective-C
@interface GMTSTimestamp : GMTCImmutableData -
An object that holds the traffic data for a stretch of road.
Declaration
Swift
class GMTSTrafficData : GMTCImmutableDataObjective-C
@interface GMTSTrafficData : GMTCImmutableData -
Object that contains logistical information about a trip such as
vehicleId, type of trip, pickup or dropoff times, and route.Declaration
Swift
class GMTSTrip : GMTCImmutableDataObjective-C
@interface GMTSTrip : GMTCImmutableData -
Object that describes a vehicle stop on its route. For a trip with multiple passengers, this point might be an intermediate stop or the end of a trip.
Declaration
Swift
class GMTSTripWaypoint : GMTCImmutableDataObjective-C
@interface GMTSTripWaypoint : GMTCImmutableData
-
Object that contains a vehicle attribute key/value pair.
Declaration
Swift
class GMTSVehicleAttributeKeyValuePair : GMTCImmutableDataObjective-C
@interface GMTSVehicleAttributeKeyValuePair : GMTCImmutableData
-
Object that contains functional data related to a vehicle. This data can be profile data, such as the max capacity, or tracking data, such as current trips and location.
Declaration
Swift
class GMTSVehicle : GMTCImmutableDataObjective-C
@interface GMTSVehicle : GMTCImmutableData -
Object that contains the location information for the vehicle that describes the heading, speed, and time when this information was retrieved.
Declaration
Swift
class GMTSVehicleLocation : GMTCImmutableDataObjective-C
@interface GMTSVehicleLocation : GMTCImmutableData -
This class defines initialization-time options for
GMTSVehicleLocation.Declaration
Swift
class GMTSVehicleLocationOptions : NSObjectObjective-C
@interface GMTSVehicleLocationOptions : NSObject -
Object that contains the vehicle’s information, ETA, and distance calculations for a vehicle that matches the
SearchVehiclesRequest.Declaration
Swift
class GMTSVehicleMatch : GMTCImmutableDataObjective-C
@interface GMTSVehicleMatch : GMTCImmutableData -
Data object containing information about the type of the vehicle.
Declaration
Swift
class GMTSVehicleType : GMTCImmutableDataObjective-C
@interface GMTSVehicleType : GMTCImmutableData -
Object representing an intermediate point along a route.
Declaration
Swift
class GMTSWaypoint : GMTCImmutableDataObjective-C
@interface GMTSWaypoint : GMTCImmutableData