-
@Serializable() public final class MiscConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMiscConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description private final MetadataCollectionConfigurationcollectMetadataprivate final DoubledefaultSessionTimeoutSecondsprivate final DoubleautoStopAfterDropoffSecondsprivate final LongdataUploadIntervalSecondsprivate final LongdataPushDelayIntervalSecondsprivate final LongflushIntervalSecondsprivate final IntegerflushBatchSize
-
Constructor Summary
Constructors Constructor Description MiscConfiguration(MetadataCollectionConfiguration collectMetadata, Double defaultSessionTimeoutSeconds, Double autoStopAfterDropoffSeconds, Long dataUploadIntervalSeconds, Long dataPushDelayIntervalSeconds, Long flushIntervalSeconds, Integer flushBatchSize)
-
Method Summary
Modifier and Type Method Description final MetadataCollectionConfigurationgetCollectMetadata()final DoublegetDefaultSessionTimeoutSeconds()final DoublegetAutoStopAfterDropoffSeconds()Server-side default for the post-dropoff auto-stop wind-down timer, in seconds. final LonggetDataUploadIntervalSeconds()final LonggetDataPushDelayIntervalSeconds()final LonggetFlushIntervalSeconds()final IntegergetFlushBatchSize()-
-
Method Detail
-
getCollectMetadata
final MetadataCollectionConfiguration getCollectMetadata()
-
getDefaultSessionTimeoutSeconds
final Double getDefaultSessionTimeoutSeconds()
-
getAutoStopAfterDropoffSeconds
final Double getAutoStopAfterDropoffSeconds()
Server-side default for the post-dropoff auto-stop wind-down timer, in seconds. When non-null (and 0), the SDK will automatically call com.doorstepai.sdks.tracking.DoorstepAI.stopDelivery this many seconds after com.doorstepai.sdks.tracking.DoorstepAI.markDropoff is invoked, unless the host explicitly passed a value to com.doorstepai.sdks.tracking.DoorstepAI.init (which always wins).
The timer is backed by android.app.AlarmManager with
setAndAllowWhileIdle, so it is Doze-safe and reliable for long values (tens of minutes to hours).
-
getDataUploadIntervalSeconds
final Long getDataUploadIntervalSeconds()
-
getDataPushDelayIntervalSeconds
final Long getDataPushDelayIntervalSeconds()
-
getFlushIntervalSeconds
final Long getFlushIntervalSeconds()
-
getFlushBatchSize
final Integer getFlushBatchSize()
-
-
-
-