Aracılığıyla paylaş


JobScheduler.ForNamespace(String) Method

Definition

Get a JobScheduler instance that is dedicated to a specific namespace.

[Android.Runtime.Register("forNamespace", "(Ljava/lang/String;)Landroid/app/job/JobScheduler;", "GetForNamespace_Ljava_lang_String_Handler", ApiSince=34)]
public virtual Android.App.Job.JobScheduler ForNamespace (string namespace);
[<Android.Runtime.Register("forNamespace", "(Ljava/lang/String;)Landroid/app/job/JobScheduler;", "GetForNamespace_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member ForNamespace : string -> Android.App.Job.JobScheduler
override this.ForNamespace : string -> Android.App.Job.JobScheduler

Parameters

namespace
String

Returns

Attributes

Remarks

Get a JobScheduler instance that is dedicated to a specific namespace. Any API calls using this instance will interact with jobs in that namespace, unless the API documentation says otherwise. Attempting to update a job scheduled in another namespace will not be possible but will instead create or update the job inside the current namespace. A JobScheduler instance dedicated to a namespace must be used to schedule or update jobs in that namespace.

<p class="note">Since leading and trailing whitespace can lead to hard-to-debug issues, they will be String#trim() trimmed. An empty String (after trimming) is not allowed.

Java documentation for android.app.job.JobScheduler.forNamespace(java.lang.String).

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