NSNotificationCenter.RemoveObserver NSNotificationCenter.RemoveObserver Method

Definition

Overloads

RemoveObserver(NSObject) RemoveObserver(NSObject)
RemoveObserver(NSObject, String, NSObject) RemoveObserver(NSObject, String, NSObject)

RemoveObserver(NSObject) RemoveObserver(NSObject)

[Foundation.Export("removeObserver:")]
public virtual void RemoveObserver (Foundation.NSObject observer);
override this.RemoveObserver : Foundation.NSObject -> unit

Parameters

observer
NSObject NSObject

Remarks

The observer parameter is either the return value

from the AddObserver methods that take a

Action<NSNotification> parameter (the C# style API) or

the "observer" parameter that is passed to AddObserver (the

Objective-C style API).

RemoveObserver(NSObject, String, NSObject) RemoveObserver(NSObject, String, NSObject)

[Foundation.Export("removeObserver:name:object:")]
public virtual void RemoveObserver (Foundation.NSObject observer, string aName, Foundation.NSObject anObject);
override this.RemoveObserver : Foundation.NSObject * string * Foundation.NSObject -> unit

Parameters

observer
NSObject NSObject
aName
String String

Optional name that you registered. Use null if you do not want filtering to take place.

This parameter can be null.

anObject
NSObject NSObject

The object that you originally registered interest in.

This parameter can be null.

Applies to