GoogleRidesharingDriver Framework Reference

  • GMTDTaskInfo represents an immutable task object that will be completed at a vehicle stop.

  • Each task has a unique taskID, which is a string identifier for the task.

  • Tasks are associated with a taskDuration, representing the time required to complete the task.

  • You can instantiate GMTDTaskInfo using the designated initializer -initWithTaskID:taskDuration:, providing the task ID and duration.

  • The default initializer -init is unavailable and should be replaced with the -initWithTaskID:taskDuration: method.

GMTDTaskInfo

@interface GMTDTaskInfo : GMTSImmutableData

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 }

    Objective-C

    @property (nonatomic, copy, readonly) GMTDFleetEngineIDString *_Nonnull taskID;
  • 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

    The ID of a task.

    taskDuration

    The time required to perform the task.

  • Unavailable

    Declaration

    Objective-C

    - (nonnull instancetype)init;