GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
An immutable object representing the context needed to fetch an auth token.
-
An abstract superclass for the Driver SDK API classes.
Declaration
Swift
class GMTDDriverAPI : NSObject, NSCopying
Objective-C
@interface GMTDDriverAPI : NSObject <NSCopying>
-
An object containing the dependencies needed to construct a GMTDDriverApi
instance.
-
A class that provide access to all the core components and serves as the entry point for the
ridesharing use case.
-
Object for sending information to the Fleet Engine backend.
Use this class only from the main thread.
Declaration
Swift
class GMTDVehicleReporter : NSObject, GMSNavigatorListener, GMSRoadSnappedLocationProviderListener
Objective-C
@interface GMTDVehicleReporter
: NSObject <GMSNavigatorListener, GMSRoadSnappedLocationProviderListener>
-
Object representing a vehicle update.
Declaration
Swift
class GMTDVehicleUpdate : NSObject, NSCopying
Objective-C
@interface GMTDVehicleUpdate : NSObject <NSCopying>
-
A base class of immutable data, subclass must implement the isEqual:
and hash
of the
NSObject
protocol.
Declaration
Swift
class GMTSImmutableData : NSObject, NSCopying, NSSecureCoding
Objective-C
@interface GMTSImmutableData : NSObject <NSCopying, NSSecureCoding>
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\u003eGMTDAuthorizationContext\u003c/code\u003e is an immutable object that provides the necessary context for retrieving an authentication token.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTDDriverAPI\u003c/code\u003e serves as an abstract superclass for the Driver SDK API classes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTDDriverContext\u003c/code\u003e contains the dependencies needed to create a \u003ccode\u003eGMTDDriverApi\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTDRidesharingDriverAPI\u003c/code\u003e offers core components and serves as the main entry point for ridesharing operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTDVehicleReporter\u003c/code\u003e is used to send information to the Fleet Engine backend, and should only be used from the main thread.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingDriver Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [GMTDAuthorizationContext](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDAuthorizationContext)\n\n `\n ` \n An immutable object representing the context needed to fetch an auth token. \n\n #### Declaration\n\n Swift \n\n class GMTDAuthorizationContext : /maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTSImmutableData\n\n Objective-C \n\n @interface GMTDAuthorizationContext : /maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTSImmutableData\n\n- `\n ``\n ``\n `\n\n ### [GMTDDriverAPI](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverAPI)\n\n `\n ` \n An abstract superclass for the Driver SDK API classes. \n\n #### Declaration\n\n Swift \n\n class GMTDDriverAPI : NSObject, NSCopying\n\n Objective-C \n\n @interface GMTDDriverAPI : NSObject \u003cNSCopying\u003e\n\n- `\n ``\n ``\n `\n\n ### [GMTDDriverContext](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverContext)\n\n `\n ` \n An object containing the dependencies needed to construct a `GMTDDriverApi` instance. \n\n #### Declaration\n\n Swift \n\n class GMTDDriverContext : /maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTSImmutableData\n\n Objective-C \n\n @interface GMTDDriverContext : /maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTSImmutableData\n\n- `\n ``\n ``\n `\n\n ### [GMTDRidesharingDriverAPI](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDRidesharingDriverAPI)\n\n `\n ` \n A class that provide access to all the core components and serves as the entry point for the\n ridesharing use case. \n\n #### Declaration\n\n Swift \n\n class GMTDRidesharingDriverAPI : /maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverAPI\n\n Objective-C \n\n @interface GMTDRidesharingDriverAPI : /maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverAPI\n\n- `\n ``\n ``\n `\n\n ### [GMTDVehicleReporter](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDVehicleReporter)\n\n `\n ` \n Object for sending information to the Fleet Engine backend.\n\n Use this class only from the main thread. \n\n #### Declaration\n\n Swift \n\n class GMTDVehicleReporter : NSObject, GMSNavigatorListener, GMSRoadSnappedLocationProviderListener\n\n Objective-C \n\n @interface GMTDVehicleReporter\n : NSObject \u003cGMSNavigatorListener, GMSRoadSnappedLocationProviderListener\u003e\n\n- `\n ``\n ``\n `\n\n ### [GMTDVehicleUpdate](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDVehicleUpdate)\n\n `\n ` \n Object representing a vehicle update. \n\n #### Declaration\n\n Swift \n\n class GMTDVehicleUpdate : NSObject, NSCopying\n\n Objective-C \n\n @interface GMTDVehicleUpdate : NSObject \u003cNSCopying\u003e\n\n- `\n ``\n ``\n `\n\n ### [GMTSImmutableData](/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTSImmutableData)\n\n `\n ` \n A base class of immutable data, subclass must implement the `isEqual:` and `hash` of the\n `NSObject` protocol. \n\n #### Declaration\n\n Swift \n\n class GMTSImmutableData : NSObject, NSCopying, NSSecureCoding\n\n Objective-C \n\n @interface GMTSImmutableData : NSObject \u003cNSCopying, NSSecureCoding\u003e"]]