Språk

UrlRequest.Builder.SetCacheDisabled(Boolean) Method

Definition

WARNING: This method should not be called with setCacheDisabled(false) as this may lead to incorrect behaviour on older versions of HttpEngine.

[Android.Runtime.Register("setCacheDisabled", "(Z)Landroid/net/http/UrlRequest$Builder;", "GetSetCacheDisabled_ZHandler", ApiSince=34)]
public abstract Android.Net.Http.UrlRequest.Builder SetCacheDisabled(bool disableCache);
[<Android.Runtime.Register("setCacheDisabled", "(Z)Landroid/net/http/UrlRequest$Builder;", "GetSetCacheDisabled_ZHandler", ApiSince=34)>]
abstract member SetCacheDisabled : bool -> Android.Net.Http.UrlRequest.Builder

Parameters

disableCache
Boolean

true to disable cache, false otherwise.

Returns

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

Attributes

Remarks

WARNING: This method should not be called with `setCacheDisabled(false)` as this may lead to incorrect behaviour on older versions of HttpEngine. Whether to disable cache for the request. If the engine is not set up to use cache, this call has no effect.

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

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