Compartir a través de


JobParameters Class

Definition

Contains the parameters used to configure/identify your job.

[Android.Runtime.Register("android/app/job/JobParameters", DoNotGenerateAcw=true)]
public class JobParameters : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/app/job/JobParameters", DoNotGenerateAcw=true)>]
type JobParameters = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
JobParameters
Attributes
Implements

Remarks

Contains the parameters used to configure/identify your job. You do not create this object yourself, instead it is handed in to your application by the System.

Java documentation for android.app.job.JobParameters.

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.

Constructors

JobParameters(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

StopReasonAppStandby
Obsolete.

The current standby bucket requires that the job stop now.

StopReasonBackgroundRestriction
Obsolete.

The app is restricted from running in the background.

StopReasonCancelledByApp
Obsolete.

The job was cancelled directly by the app, either by calling JobScheduler#cancel(int), JobScheduler#cancelAll(), or by scheduling a new job with the same job ID.

StopReasonConstraintBatteryNotLow
Obsolete.

The requested battery-not-low constraint is no longer satisfied.

StopReasonConstraintCharging
Obsolete.

The requested charging constraint is no longer satisfied.

StopReasonConstraintConnectivity
Obsolete.

The requested connectivity constraint is no longer satisfied.

StopReasonConstraintDeviceIdle
Obsolete.

The requested idle constraint is no longer satisfied.

StopReasonConstraintStorageNotLow
Obsolete.

The requested storage-not-low constraint is no longer satisfied.

StopReasonDeviceState
Obsolete.

The device state (eg.

StopReasonEstimatedAppLaunchTimeChanged
Obsolete.

The system's estimate of when the app will be launched changed significantly enough to decide this job shouldn't be running right now.

StopReasonPreempt
Obsolete.

The job was stopped to run a higher priority job of the app.

StopReasonQuota
Obsolete.

The app has consumed all of its current quota.

StopReasonSystemProcessing
Obsolete.

The system is doing some processing that requires stopping this job.

StopReasonTimeout
Obsolete.

The job used up its maximum execution time and timed out.

StopReasonUndefined
Obsolete.

There is no reason the job is stopped.

StopReasonUser
Obsolete.

The user stopped the job.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ClipData
ClipGrantFlags
Creator
Extras
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsExpeditedJob
IsOverrideDeadlineExpired

For jobs with android.app.job.JobInfo.Builder#setOverrideDeadline(long) set, this provides an easy way to tell whether the job is being executed due to the deadline expiring.

IsUserInitiatedJob
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
JobId
JobNamespace

Get the namespace this job was placed in.

Network

Return the network that should be used to perform any network requests for this job.

PeerReference (Inherited from Object)
StopReason
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TransientExtras

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CompleteWork(JobWorkItem)

Report the completion of executing a JobWorkItem previously returned by #dequeueWork().

DequeueWork()

Dequeue the next pending JobWorkItem from these JobParameters associated with their currently running job.

DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetTriggeredContentAuthorities()

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

GetTriggeredContentUris()

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

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to