AI-generated Key Takeaways
-
GMTDRidesharingDriverAPI
serves as the central access point for core ridesharing components within the driver's application. -
The
vehicleReporter
property allows for sending vehicle updates to the Fleet Engine backend. -
The API must be initialized using the
initWithDriverContext:
method, providing essential setup data. -
Using driver APIs from different verticals simultaneously in the same SDK session is not supported and may lead to issues.
-
The
init
method is unavailable and theinitWithDriverContext
should be used instead for proper initialization.
GMTDRidesharingDriverAPI
@interface GMTDRidesharingDriverAPI : GMTDDriverAPI
A class that provide access to all the core components and serves as the entry point for the ridesharing use case.
-
The vehicle reporter used to send updates to the Fleet Engine backend.
Declaration
Swift
var vehicleReporter: GMTDVehicleReporter { get }
Objective-C
@property (nonatomic, readonly) GMTDVehicleReporter *_Nonnull vehicleReporter;
-
Initializes the API.
After initialization, driver APIs from different verticals should not be used until this instance has been deallocated. Using driver API instances from multiple verticals in the same SDK session can lead to unexpected behavior.
Declaration
Swift
init?(driverContext: GMTDDriverContext)
Objective-C
- (nullable instancetype)initWithDriverContext: (nonnull GMTDDriverContext *)driverContext;
Parameters
driverContext
An object containing the necessary information for initialization.
Return Value
An instance of the API.
-
Unavailable
Use
initWithDriverContext:
instead.Declaration
Objective-C
- (null_unspecified instancetype)init;