Dil

DnsOptions.Builder.SetPersistHostCache(DnsOption) Method

Definition

Sets whether the DNS cache should be persisted to disk.

[Android.Runtime.Register("setPersistHostCache", "(I)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.DnsOptions.Builder SetPersistHostCache(Android.Net.Http.DnsOption state);
[<Android.Runtime.Register("setPersistHostCache", "(I)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)>]
member this.SetPersistHostCache : Android.Net.Http.DnsOption -> Android.Net.Http.DnsOptions.Builder

Parameters

state
DnsOption

one of the DNS_OPTION_* values. Value is one of the following: DnsOptions.DNS_OPTION_UNSPECIFIED; DnsOptions.DNS_OPTION_ENABLED; DnsOptions.DNS_OPTION_DISABLED

Returns

the builder for chaining. This value cannot be null.

Attributes

Remarks

Sets whether the DNS cache should be persisted to disk.

Only relevant if HttpEngine.Builder.setStoragePath(String) is set.

Android reference for android.net.http.DnsOptions.Builder.setPersistHostCache.

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