Added in API level 24

TriggerContentUri


class TriggerContentUri : Parcelable
kotlin.Any
   ↳ android.app.job.JobInfo.TriggerContentUri

Information about a content URI modification that a job would like to trigger on.

Summary

Constants
static Int

Flag for trigger: also trigger if any descendants of the given URI change.

Inherited constants
Public constructors
TriggerContentUri(uri: Uri, flags: Int)

Create a new trigger description.

Public methods
Int

Boolean
equals(other: Any?)

Int

Return the flags supplied for the trigger.

Uri!

Return the Uri this trigger was created for.

Int

Unit
writeToParcel(out: Parcel, flags: Int)

Properties
static Parcelable.Creator<JobInfo.TriggerContentUri!>

Constants

FLAG_NOTIFY_FOR_DESCENDANTS

Added in API level 24
static val FLAG_NOTIFY_FOR_DESCENDANTS: Int

Flag for trigger: also trigger if any descendants of the given URI change. Corresponds to the notifyForDescendants of android.content.ContentResolver#registerContentObserver.

Value: 1

Public constructors

TriggerContentUri

Added in API level 24
TriggerContentUri(
    uri: Uri,
    flags: Int)

Create a new trigger description.

Parameters
uri Uri: The URI to observe. Must be non-null.
flags Int: Flags for the observer. Value is either 0 or android.app.job.JobInfo.TriggerContentUri#FLAG_NOTIFY_FOR_DESCENDANTS

Public methods

describeContents

Added in API level 24
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 24
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getFlags

Added in API level 24
fun getFlags(): Int

Return the flags supplied for the trigger.

Return
Int Value is either 0 or android.app.job.JobInfo.TriggerContentUri#FLAG_NOTIFY_FOR_DESCENDANTS

getUri

Added in API level 24
fun getUri(): Uri!

Return the Uri this trigger was created for.

hashCode

Added in API level 24
fun hashCode(): Int
Return
Int a hash code value for this object.

writeToParcel

Added in API level 24
fun writeToParcel(
    out: Parcel,
    flags: Int
): Unit
Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 24
static val CREATOR: Parcelable.Creator<JobInfo.TriggerContentUri!>