Partager via


UrlRequest.Status.WaitingForCache Field

Definition

Caution

This constant will be removed in the future version. Use Android.Net.Http.UrlRequestStatus enum directly instead of this field.

This state corresponds to a resource load that is blocked waiting for access to a resource in the cache.

[Android.Runtime.Register("WAITING_FOR_CACHE", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.Http.UrlRequestStatus enum directly instead of this field.", true)]
public const Android.Net.Http.UrlRequestStatus WaitingForCache = 4;
[<Android.Runtime.Register("WAITING_FOR_CACHE", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.Http.UrlRequestStatus enum directly instead of this field.", true)>]
val mutable WaitingForCache : Android.Net.Http.UrlRequestStatus

Field Value

Value = 4
Attributes

Remarks

This state corresponds to a resource load that is blocked waiting for access to a resource in the cache. If multiple requests are made for the same resource, the first request will be responsible for writing (or updating) the cache entry and the second request will be deferred until the first completes. This may be done to optimize for cache reuse.

Java documentation for android.net.http.UrlRequest.Status.WAITING_FOR_CACHE.

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