Edit

Share via


NSObject.RemoveObserver Method

Definition

Overloads

RemoveObserver(NSObject, NSString)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

RemoveObserver(NSObject, String)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

RemoveObserver(NSObject, NSString, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

RemoveObserver(NSObject, String, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

RemoveObserver(NSObject, NSString)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

[Foundation.Export("removeObserver:forKeyPath:")]
public virtual void RemoveObserver (Foundation.NSObject observer, Foundation.NSString keyPath);
abstract member RemoveObserver : Foundation.NSObject * Foundation.NSString -> unit
override this.RemoveObserver : Foundation.NSObject * Foundation.NSString -> unit

Parameters

observer
NSObject

Object currently receiving the observer notifications.

keyPath
NSString

Key-path to use to perform the value lookup. The keypath consists of a series of lowercase ASCII-strings with no spaces in them separated by dot characters.

Attributes

Applies to

RemoveObserver(NSObject, String)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

public void RemoveObserver (Foundation.NSObject observer, string keyPath);
member this.RemoveObserver : Foundation.NSObject * string -> unit

Parameters

observer
NSObject

Object currently receiving the observer notifications.

keyPath
String

Key-path to use to perform the value lookup. The keypath consists of a series of lowercase ASCII-strings with no spaces in them separated by dot characters.

Applies to

RemoveObserver(NSObject, NSString, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

[Foundation.Export("removeObserver:forKeyPath:context:")]
public virtual void RemoveObserver (Foundation.NSObject observer, Foundation.NSString keyPath, IntPtr context);
abstract member RemoveObserver : Foundation.NSObject * Foundation.NSString * nativeint -> unit
override this.RemoveObserver : Foundation.NSObject * Foundation.NSString * nativeint -> unit

Parameters

observer
NSObject

Object currently receiving the observer notifications.

keyPath
NSString

Key-path to use to perform the value lookup. The keypath consists of a series of lowercase ASCII-strings with no spaces in them separated by dot characters.

context
IntPtr

nativeint

The context key that was used when the observer was originally started.

Attributes

Applies to

RemoveObserver(NSObject, String, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

public void RemoveObserver (Foundation.NSObject observer, string keyPath, IntPtr context);
member this.RemoveObserver : Foundation.NSObject * string * nativeint -> unit

Parameters

observer
NSObject

Object currently receiving the observer notifications.

keyPath
String

Key-path to use to perform the value lookup. The keypath consists of a series of lowercase ASCII-strings with no spaces in them separated by dot characters.

context
IntPtr

nativeint

The context key that was used when the observer was originally started.

Applies to