GoogleRidesharingDriver Framework Reference
Protocols
The following protocols are available globally.
-
Protocol used to provide authorization tokens for gRPC calls. These tokens
give access to the Fleet Engine service accounts.
The implementation should ensure that a valid authorization token is always available.
The authorization token should have a minimum lifetime of 5 minutes to allow for requests to
complete. Therefore, the authorization token must automatically renew expiring tokens and
minimize the number of token refreshes by re-using a token until its lifetime nears its end.
Implementations of this protocol must be thread-safe.
Declaration
Swift
protocol GMTDAuthorization : NSObjectProtocol
Objective-C
@protocol GMTDAuthorization <NSObject>
-
Declaration
Swift
protocol GMTDVehicleReporterListener : NSObjectProtocol
Objective-C
@protocol GMTDVehicleReporterListener <NSObject>
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-01-21 UTC.
[null,null,["Last updated 2025-01-21 UTC."],[[["`GMTDAuthorization` is a protocol for providing authorization tokens for gRPC calls, ensuring access to Fleet Engine service accounts with a minimum 5-minute token lifetime and thread-safe implementation."],["`GMTDVehicleReporterListener` is a protocol designed to respond to periodic vehicle updates transmitted by `GMTDVehicleReporter`."],["Both of these protocols are available globally for use, as indicated by the context of the surrounding content."]]],["Two globally available protocols are defined: `GMTDAuthorization` and `GMTDVehicleReporterListener`. `GMTDAuthorization` provides authorization tokens for gRPC calls, ensuring access to Fleet Engine service accounts. Implementations must ensure token validity (minimum 5-minute lifetime), automatic renewal, and thread safety, minimizing refreshes. `GMTDVehicleReporterListener` handles responses to periodic vehicle updates from `GMTDVehicleReporter`. Both protocols are declared in Swift and Objective-C.\n"]]