Page Summary
-
Task.TaskTypeis 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.
-
UNSPECIFIEDis the default value if the task type is unknown.
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.
public static final int DELIVERY_PICKUP
Pick up of package to be delivered.
public static final int DELIVERY_SCHEDULED_STOP
Intermediate transfer of package.
public static final int DELIVERY_UNAVAILABLE
Indicates unavailability (e.g. driver breaks or vehicle refueling).
public static final int RIDESHARING_DROPOFF
End of the ride for the passenger.
public static final int RIDESHARING_INTERMEDIATE
Intermediate task for passenger before ending the ride.
public static final int RIDESHARING_PICKUP
Ridesharing pick up the passenger.
public static final int UNSPECIFIED
Default, the task type is not known.