Android.Net.Http.HttpResponseCache.Install Method
Creates a new HTTP response cache and Java.Net.ResponseCache.Default as the system default cache.

Syntax

[Android.Runtime.Register("install", "(Ljava/io/File;J)Landroid/net/http/HttpResponseCache;", "")]
public static HttpResponseCache Install (Java.IO.File directory, long maxSize)

Parameters

directory
the directory to hold cache data.
maxSize
the maximum size of the cache in bytes.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif directory cannot be used for this cache. Most applications should respond to this exception by logging a warning.

Remarks

Creates a new HTTP response cache and Java.Net.ResponseCache.Default as the system default cache.

[Android Documentation]

Requirements

Namespace: Android.Net.Http
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 13