GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTDTaskInfo
An immutable object representing a task that will be completed at a vehicle stop.
-
The unique ID of the task.
Declaration
Swift
var taskID: String { get }
-
The time required to perform the task.
Declaration
Swift
var taskDuration: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval taskDuration;
-
Instantiates an instance of this class.
Declaration
Swift
init(taskID: String, taskDuration: TimeInterval)
Objective-C
- (nonnull instancetype)initWithTaskID:(nonnull GMTDFleetEngineIDString *)taskID
taskDuration:(NSTimeInterval)taskDuration;
Parameters
taskID
|
|
taskDuration
|
The time required to perform the task.
|
-
Declaration
Objective-C
- (nonnull 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTDTaskInfo\u003c/code\u003e represents an immutable task object that will be completed at a vehicle stop.\u003c/p\u003e\n"],["\u003cp\u003eEach task has a unique \u003ccode\u003etaskID\u003c/code\u003e, which is a string identifier for the task.\u003c/p\u003e\n"],["\u003cp\u003eTasks are associated with a \u003ccode\u003etaskDuration\u003c/code\u003e, representing the time required to complete the task.\u003c/p\u003e\n"],["\u003cp\u003eYou can instantiate \u003ccode\u003eGMTDTaskInfo\u003c/code\u003e using the designated initializer \u003ccode\u003e-initWithTaskID:taskDuration:\u003c/code\u003e, providing the task ID and duration.\u003c/p\u003e\n"],["\u003cp\u003eThe default initializer \u003ccode\u003e-init\u003c/code\u003e is unavailable and should be replaced with the \u003ccode\u003e-initWithTaskID:taskDuration:\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["GMTDTaskInfo \n\n @interface GMTDTaskInfo : ../Classes/GMTSImmutableData.html\n\nAn immutable object representing a task that will be completed at a vehicle stop.\n- `\n ``\n ``\n `\n\n [taskID](#/c:objc(cs)GMTDTaskInfo(py)taskID)`\n ` \n The unique ID of the task. \n\n Declaration \n Swift \n\n var taskID: String { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) ../Type-Definitions/GMTDFleetEngineIDString.html *_Nonnull taskID;\n\n- `\n ``\n ``\n `\n\n [taskDuration](#/c:objc(cs)GMTDTaskInfo(py)taskDuration)`\n ` \n The time required to perform the task. \n\n Declaration \n Swift \n\n var taskDuration: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval taskDuration;\n\n- `\n ``\n ``\n `\n\n [-initWithTaskID:taskDuration:](#/c:objc(cs)GMTDTaskInfo(im)initWithTaskID:taskDuration:)`\n ` \n Instantiates an instance of this class. \n\n Declaration \n Swift \n\n init(taskID: String, taskDuration: TimeInterval)\n\n Objective-C \n\n - (nonnull instancetype)initWithTaskID:(nonnull ../Type-Definitions/GMTDFleetEngineIDString.html *)taskID\n taskDuration:(NSTimeInterval)taskDuration;\n\n Parameters\n\n |----------------------|----------------------------------------|\n | ` `*taskID*` ` | The ID of a task. |\n | ` `*taskDuration*` ` | The time required to perform the task. |\n\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)GMTDTaskInfo(im)init)`\n ` \n Unavailable \n Use [-initWithTaskID:taskDuration:](../Classes/GMTDTaskInfo.html#/c:objc(cs)GMTDTaskInfo(im)initWithTaskID:taskDuration:) instead. \n\n Declaration \n Objective-C \n\n - (nonnull instancetype)init;"]]