GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eGMTDAuthorizationContext is an immutable object used for fetching authentication tokens.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a \u003ccode\u003evehicleID\u003c/code\u003e, which is a non-nullable string, representing the ID of the vehicle.\u003c/p\u003e\n"],["\u003cp\u003eIt can optionally take a \u003ccode\u003etaskID\u003c/code\u003e, which is a nullable string, representing the ID of the task.\u003c/p\u003e\n"],["\u003cp\u003eThis class does not have any public initializers, therefore you cannot create instances through the \u003ccode\u003e-init\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingDriver Framework Reference\n\nGMTDAuthorizationContext\n========================\n\n @interface GMTDAuthorizationContext : ../Classes/GMTSImmutableData.html\n\nAn immutable object representing the context needed to fetch an auth token.\n- `\n ``\n ``\n `\n\n ### [vehicleID](#/c:objc(cs)GMTDAuthorizationContext(py)vehicleID)\n\n `\n ` \n The ID of the vehicle to fetch an auth token for. \n\n #### Declaration\n\n Swift \n\n var vehicleID: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Type-Definitions/GMTDFleetEngineIDString.html *_Nonnull vehicleID;\n\n- `\n ``\n ``\n `\n\n ### [taskID](#/c:objc(cs)GMTDAuthorizationContext(py)taskID)\n\n `\n ` \n The ID of the task to fetch an auth token for. \n\n #### Declaration\n\n Swift \n\n var taskID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Type-Definitions/GMTDFleetEngineIDString.html *taskID;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMTDAuthorizationContext(im)init)\n\n `\n ` \n Unavailable \n This class has no public initializers. \n\n #### Declaration\n\n Objective-C \n\n - (null_unspecified instancetype)init;"]]