Språk

UrlRequest.Builder.SetCacheDisabled(Boolean) Method

Definition

Sets whether to disable the cache for the request.

[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

Do not call SetCacheDisabled(false) on older versions of HttpEngine, because it may cause incorrect behavior. If the engine is not set up to use a 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