Share via


ICookiePolicy.ShouldAccept(URI, HttpCookie) Method

Definition

Will be called to see whether or not this cookie should be accepted.

[Android.Runtime.Register("shouldAccept", "(Ljava/net/URI;Ljava/net/HttpCookie;)Z", "GetShouldAccept_Ljava_net_URI_Ljava_net_HttpCookie_Handler:Java.Net.ICookiePolicyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool ShouldAccept (Java.Net.URI? uri, Java.Net.HttpCookie? cookie);
[<Android.Runtime.Register("shouldAccept", "(Ljava/net/URI;Ljava/net/HttpCookie;)Z", "GetShouldAccept_Ljava_net_URI_Ljava_net_HttpCookie_Handler:Java.Net.ICookiePolicyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ShouldAccept : Java.Net.URI * Java.Net.HttpCookie -> bool

Parameters

uri
URI

the URI to consult accept policy with

cookie
HttpCookie

the HttpCookie object in question

Returns

true if this cookie should be accepted; otherwise, false

Attributes

Remarks

Will be called to see whether or not this cookie should be accepted.

Java documentation for java.net.CookiePolicy.shouldAccept(java.net.URI, java.net.HttpCookie).

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