Språk

UrlRequest.Builder.SetPriority(UrlRequestPriority) Method

Definition

Sets the priority of the request.

[Android.Runtime.Register("setPriority", "(I)Landroid/net/http/UrlRequest$Builder;", "GetSetPriority_IHandler", ApiSince=34)]
public abstract Android.Net.Http.UrlRequest.Builder SetPriority(Android.Net.Http.UrlRequestPriority priority);
[<Android.Runtime.Register("setPriority", "(I)Landroid/net/http/UrlRequest$Builder;", "GetSetPriority_IHandler", ApiSince=34)>]
abstract member SetPriority : Android.Net.Http.UrlRequestPriority -> Android.Net.Http.UrlRequest.Builder

Parameters

priority
UrlRequestPriority

A UrlRequestPriority value that specifies the request priority.

Returns

the builder to facilitate chaining. This value cannot be null.

Attributes

Remarks

If this method is not called, the request uses Medium priority.

Android reference for android.net.http.UrlRequest.Builder.setPriority.

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