# GoogleRidesharingDriver Framework Reference

# GMTDTaskInfo

    @interface GMTDTaskInfo : https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTSImmutableData.html

An immutable object representing a task that will be completed at a vehicle stop.
- `


  ### [taskID](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDTaskInfo#/c:objc(cs)GMTDTaskInfo(py)taskID)


  ` The unique ID of the task.

  #### Declaration

  Swift

      var taskID: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Type-Definitions/GMTDFleetEngineIDString.html *_Nonnull taskID;

- `


  ### [taskDuration](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDTaskInfo#/c:objc(cs)GMTDTaskInfo(py)taskDuration)


  ` The time required to perform the task.

  #### Declaration

  Swift

      var taskDuration: TimeInterval { get }

  Objective-C

      @property (nonatomic, readonly) NSTimeInterval taskDuration;

- `


  ### [-initWithTaskID:taskDuration:](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDTaskInfo#/c:objc(cs)GMTDTaskInfo(im)initWithTaskID:taskDuration:)


  ` Instantiates an instance of this class.

  #### Declaration

  Swift

      init(taskID: String, taskDuration: TimeInterval)

  Objective-C

      - (nonnull instancetype)initWithTaskID:(nonnull https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Type-Definitions/GMTDFleetEngineIDString.html *)taskID
                                taskDuration:(NSTimeInterval)taskDuration;

  #### Parameters

  |---|---|
  | ` taskID ` | The ID of a task. |
  | ` taskDuration ` | The time required to perform the task. |

- `


  ### [-init](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDTaskInfo#/c:objc(cs)GMTDTaskInfo(im)init)


  ` Unavailable
  Use `https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDTaskInfo.html#/c:objc(cs)GMTDTaskInfo(im)initWithTaskID:taskDuration:` instead.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;