GoogleRidesharingDriver Framework Reference
GMTDAuthorizationContext
An immutable object representing the context needed to fetch an auth token.
-
The ID of the vehicle to fetch an auth token for.
Declaration
Swift
var vehicleID: String { get }
-
The ID of the task to fetch an auth token for.
Declaration
Swift
var taskID: String? { get }
-
This class has no public initializers.
Declaration
Objective-C
- (null_unspecified instancetype)init;
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."],[[["GMTDAuthorizationContext is an immutable object used for fetching authentication tokens."],["It requires a `vehicleID`, which is a non-nullable string, representing the ID of the vehicle."],["It can optionally take a `taskID`, which is a nullable string, representing the ID of the task."],["This class does not have any public initializers, therefore you cannot create instances through the `-init` method."]]],["`GMTDAuthorizationContext` is an immutable object used to retrieve an authentication token. It contains two key properties: `vehicleID`, a required string representing the vehicle's ID, and `taskID`, an optional string for the task's ID. The class lacks public initializers, thus precluding direct instantiation. Its primary role is providing the necessary context for authorization token retrieval related to specific vehicles or tasks.\n"]]