UrlResponseInfo.WasCached Method

Definition

Returns true if the response came from the cache, including requests that were revalidated over the network before being retrieved from the cache.

[Android.Runtime.Register("wasCached", "()Z", "GetWasCachedHandler", ApiSince=34)]
public abstract bool WasCached ();
[<Android.Runtime.Register("wasCached", "()Z", "GetWasCachedHandler", ApiSince=34)>]
abstract member WasCached : unit -> bool

Returns

true if the response came from the cache, false otherwise.

Attributes

Remarks

Returns true if the response came from the cache, including requests that were revalidated over the network before being retrieved from the cache.

Java documentation for android.net.http.UrlResponseInfo.wasCached().

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