Język

UrlInterceptRegistry.GetSurrogate Method

Definition

Finds the first registered handler that supplies a replacement cache response.

[Android.Runtime.Register("getSurrogate", "(Ljava/lang/String;Ljava/util/Map;)Landroid/webkit/CacheManager$CacheResult;", "")]
public static Android.Webkit.CacheManager.CacheResult? GetSurrogate(string? url, System.Collections.Generic.IDictionary<string,string>? headers);
[<Android.Runtime.Register("getSurrogate", "(Ljava/lang/String;Ljava/util/Map;)Landroid/webkit/CacheManager$CacheResult;", "")>]
static member GetSurrogate : string * System.Collections.Generic.IDictionary<string, string> -> Android.Webkit.CacheManager.CacheResult

Parameters

url
String

The URL to offer to the registered interception handlers.

headers
IDictionary<String,String>

The request headers to pass to each handler.

Returns

The first non-null cache response, or null if interception is disabled or no handler supplies one.

Attributes

Remarks

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