Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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

public ContentUriTriggers ()

Public methods

add

public 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

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

iterator

public Iterator<ContentUriTriggers.Trigger> iterator ()

Returns
Iterator<ContentUriTriggers.Trigger>

size

public int size ()

Returns
int number of ContentUriTriggers.Trigger objects