JobParameters.GetTriggeredContentAuthorities Method

Definition

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

[Android.Runtime.Register("getTriggeredContentAuthorities", "()[Ljava/lang/String;", "GetGetTriggeredContentAuthoritiesHandler", ApiSince=24)]
public virtual string[]? GetTriggeredContentAuthorities ();
[<Android.Runtime.Register("getTriggeredContentAuthorities", "()[Ljava/lang/String;", "GetGetTriggeredContentAuthoritiesHandler", ApiSince=24)>]
abstract member GetTriggeredContentAuthorities : unit -> string[]
override this.GetTriggeredContentAuthorities : unit -> string[]

Returns

String[]
Attributes

Remarks

For jobs with android.app.job.JobInfo.Builder#addTriggerContentUri set, this reports which content authorities have triggered the job. It will only be null if no authorities have triggered it -- that is, the job executed for some other reason, such as a deadline expiring. If this is non-null, you can use #getTriggeredContentUris() to retrieve the details of which URIs changed (as long as that has not exceeded the maximum number it can reported).

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

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