Constraints.ContentUriTrigger


public final class Constraints.ContentUriTrigger


This class describes a content uri trigger on the WorkRequest: it should run when a local content: Uri is updated. This functionality is identical to the one found in JobScheduler and is described in JobInfo.Builder#addTriggerContentUri(android.app.job.JobInfo.TriggerContentUri).

Summary

Public constructors

ContentUriTrigger(@NonNull Uri uri, boolean isTriggeredForDescendants)

Public methods

boolean
equals(Object other)
final @NonNull Uri

The local content: Uri to observe

int
final boolean

true if trigger also applies to descendants of the Uri

Public constructors

ContentUriTrigger

Added in 2.8.0
public ContentUriTrigger(@NonNull Uri uri, boolean isTriggeredForDescendants)

Public methods

equals

public boolean equals(Object other)

getUri

Added in 2.8.0
public final @NonNull Uri getUri()

The local content: Uri to observe

hashCode

public int hashCode()

isTriggeredForDescendants

Added in 2.8.0
public final boolean isTriggeredForDescendants()

true if trigger also applies to descendants of the Uri