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

ContentUriTriggers.Trigger (Uri uri, 
                boolean triggerForDescendants)

Parameters
uri Uri

triggerForDescendants boolean

Public methods

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

getUri

Uri getUri ()

Returns
Uri

hashCode

int hashCode ()

Returns
int

shouldTriggerForDescendants

boolean shouldTriggerForDescendants ()

Returns
boolean true if trigger applies to descendants of Uri also