Język

IUrlInterceptHandler.Service(String, IDictionary<String,String>) Method

Definition

Attempts to supply a cached response for an intercepted URL.

[Android.Runtime.Register("service", "(Ljava/lang/String;Ljava/util/Map;)Landroid/webkit/CacheManager$CacheResult;", "GetService_Ljava_lang_String_Ljava_util_Map_Handler:Android.Webkit.IUrlInterceptHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Webkit.CacheManager.CacheResult? Service(string? url, System.Collections.Generic.IDictionary<string,string>? headers);
[<Android.Runtime.Register("service", "(Ljava/lang/String;Ljava/util/Map;)Landroid/webkit/CacheManager$CacheResult;", "GetService_Ljava_lang_String_Ljava_util_Map_Handler:Android.Webkit.IUrlInterceptHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Service : string * System.Collections.Generic.IDictionary<string, string> -> Android.Webkit.CacheManager.CacheResult

Parameters

url
String

The URL of the request to intercept.

headers
IDictionary<String,String>

The headers associated with the request. This value can be null.

Returns

The replacement cache result, or null if this handler does not handle the request.

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