語言

UrlRequest.Status.WaitingForCache 欄位

定義

警告

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

此狀態對應於資源負載被阻塞,等待快取中資源的存取。

[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

欄位值

Value = 4
屬性

備註

此狀態對應於資源負載被阻塞,等待快取中資源的存取。 若同一資源有多個請求,第一個請求負責寫入(或更新)快取條目,第二個請求則會延後直到第一個請求完成。 此舉可能用於優化快取重用。

Java 文件 android.net.http.UrlRequest.Status.WAITING_FOR_CACHE。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於