HttpEngine.Builder.SetEnableHttpCache(HttpCacheType, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables or disables caching of HTTP data and other information like QUIC server information.
[Android.Runtime.Register("setEnableHttpCache", "(IJ)Landroid/net/http/HttpEngine$Builder;", "GetSetEnableHttpCache_IJHandler", ApiSince=34)]
public virtual Android.Net.Http.HttpEngine.Builder SetEnableHttpCache(Android.Net.Http.HttpCacheType cacheMode, long maxSize);
[<Android.Runtime.Register("setEnableHttpCache", "(IJ)Landroid/net/http/HttpEngine$Builder;", "GetSetEnableHttpCache_IJHandler", ApiSince=34)>]
abstract member SetEnableHttpCache : Android.Net.Http.HttpCacheType * int64 -> Android.Net.Http.HttpEngine.Builder
override this.SetEnableHttpCache : Android.Net.Http.HttpCacheType * int64 -> Android.Net.Http.HttpEngine.Builder
Parameters
- cacheMode
- HttpCacheType
control location and type of cached data. Must be one of HTTP_CACHE_*.
- maxSize
- Int64
maximum size in bytes used to cache data (advisory and maybe exceeded at times).
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Enables or disables caching of HTTP data and other information like QUIC server information.
Android reference for android.net.http.HttpEngine.Builder.setEnableHttpCache.
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.