public class PickupManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PickupManager.PickupCompletionReason |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PickupEventListener pickupEventListener)
Adds a
OrderEventListener for notification of Pickup events. |
static PickupManager |
getInstance() |
void |
setUserAwaitingItemForPickup(java.lang.Boolean isAwaiting,
Pickup pickup) |
void |
startMonitoringPickup(Pickup pickup) |
void |
stopMonitoringPickupWithReason(Pickup pickup,
PickupManager.PickupCompletionReason reason) |
public static PickupManager getInstance()
public void addListener(PickupEventListener pickupEventListener)
OrderEventListener
for notification of Pickup
events. Note that
the SDK only holds a weak reference to the listener, so the app must retain a reference to
prevent the listener from being garbage collected.pickupEventListener
- the OrderEventListener
that will receive eventspublic void setUserAwaitingItemForPickup(java.lang.Boolean isAwaiting, Pickup pickup)
public void startMonitoringPickup(Pickup pickup)
public void stopMonitoringPickupWithReason(Pickup pickup, PickupManager.PickupCompletionReason reason)