Constraints.ContentUriTrigger


class Constraints.ContentUriTrigger


This class describes a content uri trigger on the WorkRequest: it should run when a local content: Uri is updated. This functionality is identical to the one found in JobScheduler and is described in JobInfo.Builder#addTriggerContentUri(android.app.job.JobInfo.TriggerContentUri).

Summary

Public constructors

ContentUriTrigger(uri: Uri, isTriggeredForDescendants: Boolean)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Boolean

true if trigger also applies to descendants of the Uri

Uri

The local content: Uri to observe

Public constructors

ContentUriTrigger

Added in 2.8.0
ContentUriTrigger(uri: Uri, isTriggeredForDescendants: Boolean)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

isTriggeredForDescendants

Added in 2.8.0
val isTriggeredForDescendantsBoolean

true if trigger also applies to descendants of the Uri

uri

Added in 2.8.0
val uriUri

The local content: Uri to observe