lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

ContentUriTriggers.Trigger

public static final class ContentUriTriggers.Trigger
extends Object

java.lang.Object
   ↳ androidx.work.ContentUriTriggers.Trigger


Defines a content Uri trigger for a WorkRequest

Summary

Public constructors

ContentUriTriggers.Trigger(Uri uri, boolean triggerForDescendants)

Public methods

boolean equals(Object o)
Uri getUri()
int hashCode()
boolean shouldTriggerForDescendants()

Inherited methods

Public constructors

ContentUriTriggers.Trigger

public ContentUriTriggers.Trigger (Uri uri, 
                boolean triggerForDescendants)

Parameters
uri Uri

triggerForDescendants boolean

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getUri

public Uri getUri ()

Returns
Uri

hashCode

public int hashCode ()

Returns
int

shouldTriggerForDescendants

public boolean shouldTriggerForDescendants ()

Returns
boolean true if trigger applies to descendants of Uri also