Share via


NSKeyValueSharedObservers.AddSharedObserver Method

Definition

[Foundation.Export("addSharedObserver:forKey:options:context:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddSharedObserver(Foundation.NSObject observer, string forKey, Foundation.NSKeyValueObservingOptions options, IntPtr context);
[<Foundation.Export("addSharedObserver:forKey:options:context:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddSharedObserver : Foundation.NSObject * string * Foundation.NSKeyValueObservingOptions * nativeint -> unit
override this.AddSharedObserver : Foundation.NSObject * string * Foundation.NSKeyValueObservingOptions * nativeint -> unit

Parameters

observer
NSObject
forKey
String
context
IntPtr

nativeint

Attributes

Applies to