次の方法で共有


JobParameters.IsUserInitiatedJob Property

Definition

public virtual bool IsUserInitiatedJob { [Android.Runtime.Register("isUserInitiatedJob", "()Z", "GetIsUserInitiatedJobHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("isUserInitiatedJob", "()Z", "GetIsUserInitiatedJobHandler", ApiSince=34)>]
member this.IsUserInitiatedJob : bool

Property Value

Whether this job is running as a user-initiated job or not. A job is guaranteed to have all user-initiated job guarantees for the duration of the job execution if this returns true. This will return false if the job wasn't requested to run as a user-initiated job, or if it was requested to run as a user-initiated job but the app didn't meet any of the requirements at the time of execution, such as having the android.Manifest.permission#RUN_USER_INITIATED_JOBS permission.

Attributes

Remarks

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

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