Udostępnij za pośrednictwem


JobParameters.GetTriggeredContentUris Method

Definition

For jobs with android.app.job.JobInfo.Builder#addTriggerContentUri set, this reports which URIs have triggered the job.

[Android.Runtime.Register("getTriggeredContentUris", "()[Landroid/net/Uri;", "GetGetTriggeredContentUrisHandler", ApiSince=24)]
public virtual Android.Net.Uri[]? GetTriggeredContentUris ();
[<Android.Runtime.Register("getTriggeredContentUris", "()[Landroid/net/Uri;", "GetGetTriggeredContentUrisHandler", ApiSince=24)>]
abstract member GetTriggeredContentUris : unit -> Android.Net.Uri[]
override this.GetTriggeredContentUris : unit -> Android.Net.Uri[]

Returns

Uri[]
Attributes

Remarks

For jobs with android.app.job.JobInfo.Builder#addTriggerContentUri set, this reports which URIs have triggered the job. This will be null if either no URIs have triggered it (it went off due to a deadline or other reason), or the number of changed URIs is too large to report. Whether or not the number of URIs is too large, you can always use #getTriggeredContentAuthorities() to determine whether the job was triggered due to any content changes and the authorities they are associated with.

Java documentation for android.app.job.JobParameters.getTriggeredContentUris().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to