WorkInfo.PeriodicityInfo


public final class WorkInfo.PeriodicityInfo


A periodic work's interval and flex duration

Summary

Public constructors

PeriodicityInfo(long repeatIntervalMillis, long flexIntervalMillis)

Public methods

boolean
equals(Object other)
final long

The duration in millis in which this work repeats from the end of the repeatInterval, as configured in PeriodicWorkRequest.Builder.

final long

The periodic work's configured repeat interval in millis, as configured in PeriodicWorkRequest.Builder

int
@NonNull String

Public constructors

PeriodicityInfo

Added in 2.9.0
public PeriodicityInfo(long repeatIntervalMillis, long flexIntervalMillis)

Public methods

equals

public boolean equals(Object other)

getFlexIntervalMillis

Added in 2.9.0
public final long getFlexIntervalMillis()

The duration in millis in which this work repeats from the end of the repeatInterval, as configured in PeriodicWorkRequest.Builder.

getRepeatIntervalMillis

Added in 2.9.0
public final long getRepeatIntervalMillis()

The periodic work's configured repeat interval in millis, as configured in PeriodicWorkRequest.Builder

hashCode

public int hashCode()

toString

public @NonNull String toString()