ContentUriTriggers

public final class ContentUriTriggers
extends Object implements Iterable<ContentUriTriggers.Trigger>

java.lang.Object
   ↳ androidx.work.ContentUriTriggers


Stores a set of ContentUriTriggers.Triggers

Summary

Nested classes

class ContentUriTriggers.Trigger

Defines a content Uri trigger for a WorkRequest  

Public constructors

ContentUriTriggers()

Public methods

void add(Uri uri, boolean triggerForDescendants)

Add a Content Uri to observe

boolean equals(Object o)
int hashCode()
Iterator<ContentUriTriggers.Trigger> iterator()
int size()

Inherited methods

Public constructors

ContentUriTriggers

ContentUriTriggers ()

Public methods

add

void add (Uri uri, 
                boolean triggerForDescendants)

Add a Content Uri to observe

Parameters
uri Uri: Uri to observe

triggerForDescendants boolean: true if any changes in descendants cause this WorkRequest to run

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

hashCode

int hashCode ()

Returns
int

iterator

Iterator<ContentUriTriggers.Trigger> iterator ()

Returns
Iterator<ContentUriTriggers.Trigger>

size

int size ()

Returns
int number of ContentUriTriggers.Trigger objects