WKHttpCookieStore.AddObserver(IWKHttpCookieStoreObserver) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add an observer to the cookie store.
[Foundation.Export("addObserver:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddObserver(WebKit.IWKHttpCookieStoreObserver observer);
[<Foundation.Export("addObserver:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
override this.AddObserver : WebKit.IWKHttpCookieStoreObserver -> unit
Parameters
- observer
- IWKHttpCookieStoreObserver
The observer to add.
- Attributes
Remarks
The cookie store only keeps a weak reference to the observer, a separate (strong) reference must be kept for the observer to not be collected by the garbage collector. Call RemoveObserver(IWKHttpCookieStoreObserver) to remove the observer to stop observing.