GoogleRidesharingDriver Framework Reference

GMTDCreateDeliveryTaskRequest

@interface GMTDCreateDeliveryTaskRequest : GMTSImmutableData

An immutable object representing a request to create a delivery task.

  • Unavailable

    Declaration

    Objective-C

    - (null_unspecified instancetype)init;
  • The ID of the task.

    Declaration

    Swift

    var taskID: String { get }

    Objective-C

    @property (nonatomic, readonly) GMTDFleetEngineIDString *_Nonnull taskID;
  • The tracking ID for the task.

    Declaration

    Swift

    var trackingID: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMTDFleetEngineIDString *trackingID;
  • Deprecated

    This property is obsolete and will be removed in a future release. Use the trackingID property instead.

    The tracking ID for the task.

    Declaration

    Swift

    var parentID: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *parentID;
  • The type of the task.

    Declaration

    Swift

    var taskType: GMTSTaskType { get }

    Objective-C

    @property (nonatomic, readonly) GMTSTaskType taskType;
  • The state of the task.

    Declaration

    Swift

    var taskState: GMTSTaskState { get }

    Objective-C

    @property (nonatomic, readonly) GMTSTaskState taskState;
  • The expected duration of the task in seconds.

    Declaration

    Swift

    var taskDuration: TimeInterval { get }

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval taskDuration;
  • Optional waypoint where the task will be performed.

    Declaration

    Swift

    var plannedWaypoint: GMSNavigationWaypoint? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *plannedWaypoint;
  • Initializes and returns a GMTDCreateDeliveryTaskRequest object using the provided attributes.

    Declaration

    Swift

    init(taskID: String, trackingID: String?, taskType: GMTSTaskType, taskState: GMTSTaskState, taskDuration: TimeInterval, plannedWaypoint: GMSNavigationWaypoint?)

    Objective-C

    - (nonnull instancetype)
         initWithTaskID:(nonnull GMTDFleetEngineIDString *)taskID
             trackingID:(nullable GMTDFleetEngineIDString *)trackingID
               taskType:(GMTSTaskType)taskType
              taskState:(GMTSTaskState)taskState
           taskDuration:(NSTimeInterval)taskDuration
        plannedWaypoint:(nullable GMSNavigationWaypoint *)plannedWaypoint;

    Parameters

    taskID

    The ID of the task.

    trackingID

    An abitrary ID the client may find useful in tracking the task.

    taskType

    The type of this task.

    taskState

    The state of this task.

    taskDuration

    The expected duration of this task in seconds.

    plannedWaypoint

    The location where this task will be performed.