Task.TaskType

  • Task.TaskType is an annotation that defines the type of a task in the Driver SDK.

  • It includes constants for delivery tasks (pickup, delivery, scheduled stop, unavailable) and ridesharing tasks (pickup, dropoff, intermediate).

  • Each task type is represented by an integer constant value.

  • UNSPECIFIED is the default value if the task type is unknown.

public static abstract @interface Task.TaskType implements Annotation

The type of a Task.

Constant Summary

int DELIVERY_DELIVERY Delivery of package.
int DELIVERY_PICKUP Pick up of package to be delivered.
int DELIVERY_SCHEDULED_STOP Intermediate transfer of package.
int DELIVERY_UNAVAILABLE Indicates unavailability (e.g.
int RIDESHARING_DROPOFF End of the ride for the passenger.
int RIDESHARING_INTERMEDIATE Intermediate task for passenger before ending the ride.
int RIDESHARING_PICKUP Ridesharing pick up the passenger.
int UNSPECIFIED Default, the task type is not known.

Inherited Method Summary

Constants

public static final int DELIVERY_DELIVERY

Delivery of package.

Constant Value: 11

public static final int DELIVERY_PICKUP

Pick up of package to be delivered.

Constant Value: 10

public static final int DELIVERY_SCHEDULED_STOP

Intermediate transfer of package.

Constant Value: 12

public static final int DELIVERY_UNAVAILABLE

Indicates unavailability (e.g. driver breaks or vehicle refueling).

Constant Value: 13

public static final int RIDESHARING_DROPOFF

End of the ride for the passenger.

Constant Value: 3

public static final int RIDESHARING_INTERMEDIATE

Intermediate task for passenger before ending the ride.

Constant Value: 2

public static final int RIDESHARING_PICKUP

Ridesharing pick up the passenger.

Constant Value: 1

public static final int UNSPECIFIED

Default, the task type is not known.

Constant Value: 0