# GoogleRidesharingDriver Framework Reference

# Protocols

The following protocols are available globally.
- `


  ### [GMTDAuthorization](https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Protocols/GMTDAuthorization)


  ` 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>

- `


  ### [GMTDVehicleReporterListener](https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Protocols/GMTDVehicleReporterListener)


  ` Protocol for responding to periodic vehicle updates sent by `https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDVehicleReporter`.

  #### Declaration

  Swift

      protocol GMTDVehicleReporterListener : NSObjectProtocol

  Objective-C

      @protocol GMTDVehicleReporterListener <NSObject>