# WorkInfo.PeriodicityInfo

# WorkInfo.PeriodicityInfo

Artifact:[androidx.work:work-runtime](https://developer.android.com/jetpack/androidx/releases/work)  
[View Source](https://cs.android.com/search?q=file:androidx/work/WorkInfo.kt+class:androidx.work.WorkInfo.PeriodicityInfo)  
Added in[2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo "View this page in Java")

<br />

```
class WorkInfo.PeriodicityInfo
```

<br />

*** ** * ** ***

A periodic work's interval and flex duration

## Summary

|                                                                                                                                                                     ### Public constructors                                                                                                                                                                     |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PeriodicityInfo](https://developer.android.com/reference/kotlin/androidx/work/WorkInfo.PeriodicityInfo#PeriodicityInfo(kotlin.Long,kotlin.Long))`(repeatIntervalMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, flexIntervalMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/work/WorkInfo.PeriodicityInfo#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/work/WorkInfo.PeriodicityInfo#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/work/WorkInfo.PeriodicityInfo#toString())`()`                                                                                            |

|                             ### Public properties                             |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [flexIntervalMillis](https://developer.android.com/reference/kotlin/androidx/work/WorkInfo.PeriodicityInfo#flexIntervalMillis()) The duration in millis in which this work repeats from the end of the`repeatInterval`, as configured in[PeriodicWorkRequest.Builder](https://developer.android.com/reference/kotlin/androidx/work/PeriodicWorkRequest.Builder). |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [repeatIntervalMillis](https://developer.android.com/reference/kotlin/androidx/work/WorkInfo.PeriodicityInfo#repeatIntervalMillis()) The periodic work's configured repeat interval in millis, as configured in[PeriodicWorkRequest.Builder](https://developer.android.com/reference/kotlin/androidx/work/PeriodicWorkRequest.Builder)                           |

## Public constructors

### PeriodicityInfo

Added in[2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)  

```
PeriodicityInfo(repeatIntervalMillis: Long, flexIntervalMillis: Long)
```  

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```  

## Public properties

### flexIntervalMillis

Added in[2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)  

```
val flexIntervalMillis: Long
```

The duration in millis in which this work repeats from the end of the`repeatInterval`, as configured in[PeriodicWorkRequest.Builder](https://developer.android.com/reference/kotlin/androidx/work/PeriodicWorkRequest.Builder).  

### repeatIntervalMillis

Added in[2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)  

```
val repeatIntervalMillis: Long
```

The periodic work's configured repeat interval in millis, as configured in[PeriodicWorkRequest.Builder](https://developer.android.com/reference/kotlin/androidx/work/PeriodicWorkRequest.Builder)