다음을 통해 공유


CookieManager Constructors

Definition

Overloads

CookieManager()

Create a new cookie manager.

CookieManager(ICookieStore, ICookiePolicy)

Create a new cookie manager with specified cookie store and cookie policy.

CookieManager(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

CookieManager()

Create a new cookie manager.

[Android.Runtime.Register(".ctor", "()V", "")]
public CookieManager ();
Attributes

Remarks

Create a new cookie manager.

This constructor will create new cookie manager with default cookie store and accept policy. The effect is same as CookieManager(null, null).

Java documentation for java.net.CookieManager.CookieManager().

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

CookieManager(ICookieStore, ICookiePolicy)

Create a new cookie manager with specified cookie store and cookie policy.

[Android.Runtime.Register(".ctor", "(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V", "")]
public CookieManager (Java.Net.ICookieStore? store, Java.Net.ICookiePolicy? cookiePolicy);
[<Android.Runtime.Register(".ctor", "(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V", "")>]
new Java.Net.CookieManager : Java.Net.ICookieStore * Java.Net.ICookiePolicy -> Java.Net.CookieManager

Parameters

store
ICookieStore

a CookieStore to be used by cookie manager. if null, cookie manager will use a default one, which is an in-memory CookieStore implementation.

cookiePolicy
ICookiePolicy

a CookiePolicy instance to be used by cookie manager as policy callback. if null, ACCEPT_ORIGINAL_SERVER will be used.

Attributes

Remarks

Create a new cookie manager with specified cookie store and cookie policy.

Java documentation for java.net.CookieManager.CookieManager(java.net.CookieStore, java.net.CookiePolicy).

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

CookieManager(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected CookieManager (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Net.CookieManager : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.CookieManager

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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