public final class ZendriveInsurance
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
startDriveWithPeriod2(java.lang.String trackingId,
ZendriveOperationCallback callback)
Start insurance period 2 in the SDK.
|
static void |
startDriveWithPeriod3(java.lang.String trackingId,
ZendriveOperationCallback callback)
Start insurance period 3 in the SDK.
|
static void |
startPeriod1(ZendriveOperationCallback callback)
Start insurance period 1 in the SDK.
|
static void |
stopPeriod(ZendriveOperationCallback callback)
Stop currently ongoing insurance period if any.
|
public static void startPeriod1(ZendriveOperationCallback callback)
ZendriveErrorCode.SDK_NOT_SETUP
callback
- called with the result of the operationpublic static void startDriveWithPeriod2(java.lang.String trackingId, ZendriveOperationCallback callback)
trackingId
- an identifier which allows identifying this drive uniquely. This identifier
must be unique for this user. It may not be null or a empty string. It will
be truncated to 64 characters if it is longer than 64 characters.
Passing invalid trackingId is an error
.callback
- called with the result of the operationpublic static void startDriveWithPeriod3(java.lang.String trackingId, ZendriveOperationCallback callback)
trackingId
- an identifier which allows identifying this drive uniquely. This identifier
must be unique for this user. It may not be null or a empty string. It will
be truncated to 64 characters if it is longer than 64 characters.
Passing invalid trackingId is an error
.callback
- called with the result of the operationpublic static void stopPeriod(ZendriveOperationCallback callback)
callback
- called with the result of the operation