Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

ContentUriTriggers

public final class ContentUriTriggers
extends Object

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()
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

size

public int size ()

Returns
int number of ContentUriTriggers.Trigger objects