Edytuj

Udostępnij za pośrednictwem


NSNotificationCenter.RemoveObserver Method

Definition

Overloads

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

RemoveObserver(NSObject)

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

Parameters

observer
NSObject
Attributes

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).

Applies to

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
aName
String

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

This parameter can be null.

anObject
NSObject

The object that you originally registered interest in.

This parameter can be null.

Attributes

Applies to