-
public class DoorstepAI
-
-
Field Summary
Fields Modifier and Type Field Description private BooleandevModepublic final static DoorstepAIINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitinit(Context context, String notificationTitle, String notificationText, Function1<Result<Unit>, Unit> callback)final UnitstartDeliveryByPlaceID(String placeID, String deliveryId, Function1<Result<String>, Unit> callback)final UnitstartDeliveryByPlusCode(String plusCode, String deliveryId, Function1<Result<String>, Unit> callback)final UnitstartDeliveryByAddressType(AddressType address, String deliveryId, Function1<Result<String>, Unit> callback)final UnitnewEvent(String eventName, String deliveryId, Function1<Result<String>, Unit> callback)final UnitstopDelivery(String deliveryId)final UnitsetAPIKey(String key)final BooleangetDevMode()final UnitsetDevMode(Boolean devMode)-
-
Method Detail
-
init
final Unit init(Context context, String notificationTitle, String notificationText, Function1<Result<Unit>, Unit> callback)
-
startDeliveryByPlaceID
final Unit startDeliveryByPlaceID(String placeID, String deliveryId, Function1<Result<String>, Unit> callback)
-
startDeliveryByPlusCode
final Unit startDeliveryByPlusCode(String plusCode, String deliveryId, Function1<Result<String>, Unit> callback)
-
startDeliveryByAddressType
final Unit startDeliveryByAddressType(AddressType address, String deliveryId, Function1<Result<String>, Unit> callback)
-
newEvent
final Unit newEvent(String eventName, String deliveryId, Function1<Result<String>, Unit> callback)
-
stopDelivery
final Unit stopDelivery(String deliveryId)
-
getDevMode
final Boolean getDevMode()
-
setDevMode
final Unit setDevMode(Boolean devMode)
-
-
-
-