-
public final class AdClickDataData class for storing ad click tracking information that can be manually serialized for WorkManager without external dependencies.
This class handles the conversion between Kotlin data types and WorkManager's Data format, ensuring reliable persistence of ad click tracking data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAdClickData.Companion
-
Method Summary
Modifier and Type Method Description final StringgetUclid()final StringgetCliUbid()final IntegergetPosition()final LonggetTimestamp()final IntegergetAttemptCount()final IntegergetMaxRetries()final DatatoWorkData()Converts this AdClickData to WorkManager Data format. final AdClickDataincrementAttempt()Creates a new AdClickData with incremented attempt count. final BooleanshouldRetry()Checks if this ad click should be retried based on attempt count. -
-
Method Detail
-
getCliUbid
final String getCliUbid()
-
getPosition
final Integer getPosition()
-
getTimestamp
final Long getTimestamp()
-
getAttemptCount
final Integer getAttemptCount()
-
getMaxRetries
final Integer getMaxRetries()
-
toWorkData
final Data toWorkData()
Converts this AdClickData to WorkManager Data format.
-
incrementAttempt
final AdClickData incrementAttempt()
Creates a new AdClickData with incremented attempt count.
-
shouldRetry
final Boolean shouldRetry()
Checks if this ad click should be retried based on attempt count.
-
-
-
-